Page 4 of 4

Re: Digital Image Processing

Posted: Thu Jan 21, 2021 2:38 am
by andyglezl
franco wrote: Thu Jan 21, 2021 1:03 am Amazing Andy,
Do you think I could take a 2249 kb jpg and resize to 200 kb and still be clear inside hmg this way to redo my internal camera files before
copying and saving them.
mmm...
Bueno, hice una prueba cargando una imagen de 2,143 KB y la salve con este programa y quedó de 565 KB y me parece buena la resolución.
Pero depende que signifique "buena resolución" para cada uno y el fin que le dará a estás imagenes.
*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
mmm ...
Well, I did a test loading a 2,143 KB image and I saved it with this program and it was 565 KB and the resolution seems good.
But it depends on what "good resolution" means for each one and the purpose that it will give to these images.

prbhmg.JPG
prbhmg.JPG (436.83 KiB) Viewed 3883 times

Re: Digital Image Processing

Posted: Thu Jan 21, 2021 3:01 am
by AUGE_OHR
hi,
franco wrote: Thu Jan 21, 2021 1:03 am Do you think I could take a 2249 kb jpg and resize to 200 kb and still be clear inside hmg this way to redo my internal camera files before copying and saving them.
i wonder why you work with CAM instead of Scanner while a CAM have "too much Color"
if you have a Document you need only Black/White so Size of Image is much smaller when compress using JPG.

Re: Digital Image Processing

Posted: Thu Jan 21, 2021 10:29 am
by franco
I need to take pictures with the camera of a Microsoft go 2 tablet.
The electric motor rewind technicians use the tablets to take pictures of different parts of motors while they rebuild.
They just want to hold tablet and take picture nothing else.
I am waiting for sample picture to post to see if a member (Andy) could show me how to resize with a function inside my program after taking picture.

Re: Digital Image Processing

Posted: Thu Jan 21, 2021 12:31 pm
by mol
the simplest way is to create control IMAGE of requested size, display your picture in this control and save window to a file.
It should be very easy to realize

this is piece of code of Jimmy AUHE_OHR

Code: Select all

   Row    := 0
   Col    := 0
   Width  := BT_ClientAreaWidth("Form_1")
   Height := BT_ClientAreaHeight("Form_1")

   hBitmap := BT_BitmapCaptureClientArea ("Form_1", Row, Col, Width, Height)
   BT_BitmapSaveFile (hBitmap, cFileName, nTypePicture)
   BT_BitmapRelease (hBitmap)
 
look at this topic: viewtopic.php?f=5&t=6744&p=64793&hilit= ... ile#p64793

Re: Digital Image Processing

Posted: Thu Jan 21, 2021 6:40 pm
by andyglezl
WOW !
Realmente me sorprendo de lo que podemos plasmar con nuestra imaginación
*--------------------------------------------------------------------------------------------------
Wow
I am really surprised at what we can capture with our imagination

The attachment ChicaMarYTorre.jpg is no longer available
ChicaMarYTorre.jpg
ChicaMarYTorre.jpg (1.06 MiB) Viewed 3837 times
Carboncillo.JPG
Carboncillo.JPG (194.56 KiB) Viewed 3837 times
Face17-OverlayB&WAlpha6.JPG
Face17-OverlayB&WAlpha6.JPG (385.16 KiB) Viewed 3837 times
Tradicional-Moderno.JPG
Tradicional-Moderno.JPG (506.08 KiB) Viewed 3837 times
HojaDeLibro01-ConCara.jpg
HojaDeLibro01-ConCara.jpg (233.4 KiB) Viewed 3832 times
Face11-HandWritingPaintManual.JPG
Face11-HandWritingPaintManual.JPG (238.64 KiB) Viewed 3832 times
Coloreado5.jpg
Coloreado5.jpg (310.21 KiB) Viewed 3798 times
.
.
.
.
Pude utilizar una Tableta y un Lápiz !!! (Solo instalandolo)
*--------------------------------------------------------------------------------------------------
I was able to use a Tablet and a Pencil !!! (Just installing it)
Coloreado6.jpg
Coloreado6.jpg (272.61 KiB) Viewed 3798 times
PruebaTabletaLápiz.jpg
PruebaTabletaLápiz.jpg (896.59 KiB) Viewed 3787 times
TemplateDrawColor.jpg
TemplateDrawColor.jpg (557.55 KiB) Viewed 3763 times
imagen_2021-02-04_093215.png
imagen_2021-02-04_093215.png (1.46 MiB) Viewed 3639 times
imagen_2021-02-05_011339.png
imagen_2021-02-05_011339.png (1.44 MiB) Viewed 3632 times
imagen_2021-02-05_024630.png
imagen_2021-02-05_024630.png (1.28 MiB) Viewed 3632 times
imagen_2021-02-05_150929.png
imagen_2021-02-05_150929.png (1.74 MiB) Viewed 3630 times
Emma_7.JPG
Emma_7.JPG (249.33 KiB) Viewed 2938 times
imagen_2021-02-27_085003.png
imagen_2021-02-27_085003.png (1.51 MiB) Viewed 2929 times
imagen_2021-02-27_102702.png
imagen_2021-02-27_102702.png (1.47 MiB) Viewed 2928 times
imagen_2021-02-27_105823.png
imagen_2021-02-27_105823.png (1012.17 KiB) Viewed 2928 times
imagen_2021-02-28_151958.png
imagen_2021-02-28_151958.png (1.54 MiB) Viewed 2908 times
imagen_2021-03-01_212343.png
imagen_2021-03-01_212343.png (1.3 MiB) Viewed 2881 times
imagen_2021-03-06_215635.png
imagen_2021-03-06_215635.png (1.32 MiB) Viewed 2795 times
imagen_2021-03-20_215403.png
imagen_2021-03-20_215403.png (1.45 MiB) Viewed 2287 times
imagen_2021-03-20_225155.png
imagen_2021-03-20_225155.png (1.19 MiB) Viewed 2287 times
imagen_2021-04-12_230121.png
imagen_2021-04-12_230121.png (1.31 MiB) Viewed 2196 times
imagen_2021-04-29_082648.png
imagen_2021-04-29_082648.png (1.28 MiB) Viewed 2107 times

Re: Digital Image Processing

Posted: Thu Jan 21, 2021 8:17 pm
by franco
Holy Cow and WOW,
Thanks to
Andres, Jimmy an Mol
I have this working in a small program. I have shrunk a 3.2mg picture to 652kb. and it is 100% clear for what I need.
I used Mol`s suggestion designed by Jimmy
Amazing and thanks again.

Re: Digital Image Processing

Posted: Fri May 28, 2021 9:10 pm
by andyglezl
La práctica hace al maestro... ;)
*---------------------------------------
Practice makes a master... ;)

Face00.JPG
Face00.JPG (808.71 KiB) Viewed 1941 times




TUTORIAL
Tutorial01.zip
(231.43 KiB) Downloaded 108 times

Descarga el programa desde aquí :)
*---------------------------------------------
Download the program from here :)
https://www.hmgforum.com/download/file.php?id=10381

imagen_2021-05-29_005701.png
imagen_2021-05-29_005701.png (1.01 MiB) Viewed 1919 times
imagen_2021-05-29_004842.png
imagen_2021-05-29_004842.png (747.31 KiB) Viewed 1919 times
imagen_2021-05-29_010633.png
imagen_2021-05-29_010633.png (786.34 KiB) Viewed 1918 times

Que lo disfruten !!!
*-----------------------
Enjoy it !!!



Tutorial02

imagen_2021-05-31_130511.png
imagen_2021-05-31_130511.png (280.78 KiB) Viewed 1822 times



Tutorial03

"Save as..." next images.
imagen_2021-06-19_161132.png
imagen_2021-06-19_161132.png (48.22 KiB) Viewed 1589 times
imagen_2021-06-19_161206.png
imagen_2021-06-19_161206.png (12.41 KiB) Viewed 1589 times
imagen_2021-06-19_161223.png
imagen_2021-06-19_161223.png (82.92 KiB) Viewed 1589 times
imagen_2021-06-19_161403.png
imagen_2021-06-19_161403.png (179.17 KiB) Viewed 1589 times
imagen_2021-06-29_230758.png
imagen_2021-06-29_230758.png (411.49 KiB) Viewed 1424 times
imagen_2021-06-30_133607.png
imagen_2021-06-30_133607.png (776.39 KiB) Viewed 1408 times
imagen_2021-10-14_135320.png
imagen_2021-10-14_135320.png (691.46 KiB) Viewed 1162 times
imagen_2021-11-22_231630.png
imagen_2021-11-22_231630.png (894.29 KiB) Viewed 1061 times
imagen_2021-12-07_235134.png
imagen_2021-12-07_235134.png (1.65 MiB) Viewed 1036 times
OtraChica.png
OtraChica.png (473.09 KiB) Viewed 995 times
Chica_44.JPG.png
Chica_44.JPG.png (920.95 KiB) Viewed 963 times
chicaCraquelado.png
chicaCraquelado.png (892.87 KiB) Viewed 958 times
imagen_2022-04-04_180948855.png
imagen_2022-04-04_180948855.png (2.78 MiB) Viewed 844 times
imagen_2022-04-05_220443033.png
imagen_2022-04-05_220443033.png (4.81 MiB) Viewed 840 times
imagen_2022-04-24_030410669.png
imagen_2022-04-24_030410669.png (1.11 MiB) Viewed 763 times
imagen_2022-04-28_213832829.png
imagen_2022-04-28_213832829.png (947.79 KiB) Viewed 755 times
imagen_2022-05-03_230136758.png
imagen_2022-05-03_230136758.png (1.47 MiB) Viewed 752 times
imagen_2022-08-04_233354489.png
imagen_2022-08-04_233354489.png (1.69 MiB) Viewed 699 times
imagen_2022-09-09_203559771.png
imagen_2022-09-09_203559771.png (1.44 MiB) Viewed 659 times

Re: Digital Image Processing

Posted: Sat May 29, 2021 9:25 am
by Claudio Ricardo
Mis más sinceras felicitaciones Andy !!!