Digital Image Processing

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Digital Image Processing

Post 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 4333 times
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
AUGE_OHR
Posts: 2096
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Digital Image Processing

Post 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.
have fun
Jimmy
franco
Posts: 889
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Digital Image Processing

Post 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.
All The Best,
Franco
Canada
User avatar
mol
Posts: 3805
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Digital Image Processing

Post 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
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Digital Image Processing

Post 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 4287 times
Carboncillo.JPG
Carboncillo.JPG (194.56 KiB) Viewed 4287 times
Face17-OverlayB&WAlpha6.JPG
Face17-OverlayB&WAlpha6.JPG (385.16 KiB) Viewed 4287 times
Tradicional-Moderno.JPG
Tradicional-Moderno.JPG (506.08 KiB) Viewed 4287 times
HojaDeLibro01-ConCara.jpg
HojaDeLibro01-ConCara.jpg (233.4 KiB) Viewed 4282 times
Face11-HandWritingPaintManual.JPG
Face11-HandWritingPaintManual.JPG (238.64 KiB) Viewed 4282 times
Coloreado5.jpg
Coloreado5.jpg (310.21 KiB) Viewed 4248 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 4248 times
PruebaTabletaLápiz.jpg
PruebaTabletaLápiz.jpg (896.59 KiB) Viewed 4237 times
TemplateDrawColor.jpg
TemplateDrawColor.jpg (557.55 KiB) Viewed 4213 times
imagen_2021-02-04_093215.png
imagen_2021-02-04_093215.png (1.46 MiB) Viewed 4089 times
imagen_2021-02-05_011339.png
imagen_2021-02-05_011339.png (1.44 MiB) Viewed 4082 times
imagen_2021-02-05_024630.png
imagen_2021-02-05_024630.png (1.28 MiB) Viewed 4082 times
imagen_2021-02-05_150929.png
imagen_2021-02-05_150929.png (1.74 MiB) Viewed 4080 times
Emma_7.JPG
Emma_7.JPG (249.33 KiB) Viewed 3388 times
imagen_2021-02-27_085003.png
imagen_2021-02-27_085003.png (1.51 MiB) Viewed 3379 times
imagen_2021-02-27_102702.png
imagen_2021-02-27_102702.png (1.47 MiB) Viewed 3378 times
imagen_2021-02-27_105823.png
imagen_2021-02-27_105823.png (1012.17 KiB) Viewed 3378 times
imagen_2021-02-28_151958.png
imagen_2021-02-28_151958.png (1.54 MiB) Viewed 3358 times
imagen_2021-03-01_212343.png
imagen_2021-03-01_212343.png (1.3 MiB) Viewed 3331 times
imagen_2021-03-06_215635.png
imagen_2021-03-06_215635.png (1.32 MiB) Viewed 3245 times
imagen_2021-03-20_215403.png
imagen_2021-03-20_215403.png (1.45 MiB) Viewed 2737 times
imagen_2021-03-20_225155.png
imagen_2021-03-20_225155.png (1.19 MiB) Viewed 2737 times
imagen_2021-04-12_230121.png
imagen_2021-04-12_230121.png (1.31 MiB) Viewed 2646 times
imagen_2021-04-29_082648.png
imagen_2021-04-29_082648.png (1.28 MiB) Viewed 2557 times
Last edited by andyglezl on Thu Apr 29, 2021 1:35 pm, edited 20 times in total.
Andrés González López
Desde Guadalajara, Jalisco. México.
franco
Posts: 889
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Digital Image Processing

Post 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.
All The Best,
Franco
Canada
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Digital Image Processing

Post by andyglezl »

La práctica hace al maestro... ;)
*---------------------------------------
Practice makes a master... ;)

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




TUTORIAL
Tutorial01.zip
(231.43 KiB) Downloaded 127 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 2369 times
imagen_2021-05-29_004842.png
imagen_2021-05-29_004842.png (747.31 KiB) Viewed 2369 times
imagen_2021-05-29_010633.png
imagen_2021-05-29_010633.png (786.34 KiB) Viewed 2368 times

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



Tutorial02

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



Tutorial03

"Save as..." next images.
imagen_2021-06-19_161132.png
imagen_2021-06-19_161132.png (48.22 KiB) Viewed 2039 times
imagen_2021-06-19_161206.png
imagen_2021-06-19_161206.png (12.41 KiB) Viewed 2039 times
imagen_2021-06-19_161223.png
imagen_2021-06-19_161223.png (82.92 KiB) Viewed 2039 times
imagen_2021-06-19_161403.png
imagen_2021-06-19_161403.png (179.17 KiB) Viewed 2039 times
imagen_2021-06-29_230758.png
imagen_2021-06-29_230758.png (411.49 KiB) Viewed 1874 times
imagen_2021-06-30_133607.png
imagen_2021-06-30_133607.png (776.39 KiB) Viewed 1858 times
imagen_2021-10-14_135320.png
imagen_2021-10-14_135320.png (691.46 KiB) Viewed 1612 times
imagen_2021-11-22_231630.png
imagen_2021-11-22_231630.png (894.29 KiB) Viewed 1511 times
imagen_2021-12-07_235134.png
imagen_2021-12-07_235134.png (1.65 MiB) Viewed 1486 times
OtraChica.png
OtraChica.png (473.09 KiB) Viewed 1445 times
Chica_44.JPG.png
Chica_44.JPG.png (920.95 KiB) Viewed 1413 times
chicaCraquelado.png
chicaCraquelado.png (892.87 KiB) Viewed 1408 times
imagen_2022-04-04_180948855.png
imagen_2022-04-04_180948855.png (2.78 MiB) Viewed 1294 times
imagen_2022-04-05_220443033.png
imagen_2022-04-05_220443033.png (4.81 MiB) Viewed 1290 times
imagen_2022-04-24_030410669.png
imagen_2022-04-24_030410669.png (1.11 MiB) Viewed 1213 times
imagen_2022-04-28_213832829.png
imagen_2022-04-28_213832829.png (947.79 KiB) Viewed 1205 times
imagen_2022-05-03_230136758.png
imagen_2022-05-03_230136758.png (1.47 MiB) Viewed 1202 times
imagen_2022-08-04_233354489.png
imagen_2022-08-04_233354489.png (1.69 MiB) Viewed 1149 times
imagen_2022-09-09_203559771.png
imagen_2022-09-09_203559771.png (1.44 MiB) Viewed 1109 times
Last edited by andyglezl on Sat Sep 10, 2022 1:38 am, edited 19 times in total.
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Re: Digital Image Processing

Post by Claudio Ricardo »

Mis más sinceras felicitaciones Andy !!!
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
Post Reply