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 3852 times
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
AUGE_OHR
Posts: 2061
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: 818
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: 3720
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 3806 times
Carboncillo.JPG
Carboncillo.JPG (194.56 KiB) Viewed 3806 times
Face17-OverlayB&WAlpha6.JPG
Face17-OverlayB&WAlpha6.JPG (385.16 KiB) Viewed 3806 times
Tradicional-Moderno.JPG
Tradicional-Moderno.JPG (506.08 KiB) Viewed 3806 times
HojaDeLibro01-ConCara.jpg
HojaDeLibro01-ConCara.jpg (233.4 KiB) Viewed 3801 times
Face11-HandWritingPaintManual.JPG
Face11-HandWritingPaintManual.JPG (238.64 KiB) Viewed 3801 times
Coloreado5.jpg
Coloreado5.jpg (310.21 KiB) Viewed 3767 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 3767 times
PruebaTabletaLápiz.jpg
PruebaTabletaLápiz.jpg (896.59 KiB) Viewed 3756 times
TemplateDrawColor.jpg
TemplateDrawColor.jpg (557.55 KiB) Viewed 3732 times
imagen_2021-02-04_093215.png
imagen_2021-02-04_093215.png (1.46 MiB) Viewed 3608 times
imagen_2021-02-05_011339.png
imagen_2021-02-05_011339.png (1.44 MiB) Viewed 3601 times
imagen_2021-02-05_024630.png
imagen_2021-02-05_024630.png (1.28 MiB) Viewed 3601 times
imagen_2021-02-05_150929.png
imagen_2021-02-05_150929.png (1.74 MiB) Viewed 3599 times
Emma_7.JPG
Emma_7.JPG (249.33 KiB) Viewed 2907 times
imagen_2021-02-27_085003.png
imagen_2021-02-27_085003.png (1.51 MiB) Viewed 2898 times
imagen_2021-02-27_102702.png
imagen_2021-02-27_102702.png (1.47 MiB) Viewed 2897 times
imagen_2021-02-27_105823.png
imagen_2021-02-27_105823.png (1012.17 KiB) Viewed 2897 times
imagen_2021-02-28_151958.png
imagen_2021-02-28_151958.png (1.54 MiB) Viewed 2877 times
imagen_2021-03-01_212343.png
imagen_2021-03-01_212343.png (1.3 MiB) Viewed 2850 times
imagen_2021-03-06_215635.png
imagen_2021-03-06_215635.png (1.32 MiB) Viewed 2764 times
imagen_2021-03-20_215403.png
imagen_2021-03-20_215403.png (1.45 MiB) Viewed 2256 times
imagen_2021-03-20_225155.png
imagen_2021-03-20_225155.png (1.19 MiB) Viewed 2256 times
imagen_2021-04-12_230121.png
imagen_2021-04-12_230121.png (1.31 MiB) Viewed 2165 times
imagen_2021-04-29_082648.png
imagen_2021-04-29_082648.png (1.28 MiB) Viewed 2076 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: 818
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 1910 times




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

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



Tutorial02

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



Tutorial03

"Save as..." next images.
imagen_2021-06-19_161132.png
imagen_2021-06-19_161132.png (48.22 KiB) Viewed 1558 times
imagen_2021-06-19_161206.png
imagen_2021-06-19_161206.png (12.41 KiB) Viewed 1558 times
imagen_2021-06-19_161223.png
imagen_2021-06-19_161223.png (82.92 KiB) Viewed 1558 times
imagen_2021-06-19_161403.png
imagen_2021-06-19_161403.png (179.17 KiB) Viewed 1558 times
imagen_2021-06-29_230758.png
imagen_2021-06-29_230758.png (411.49 KiB) Viewed 1393 times
imagen_2021-06-30_133607.png
imagen_2021-06-30_133607.png (776.39 KiB) Viewed 1377 times
imagen_2021-10-14_135320.png
imagen_2021-10-14_135320.png (691.46 KiB) Viewed 1131 times
imagen_2021-11-22_231630.png
imagen_2021-11-22_231630.png (894.29 KiB) Viewed 1030 times
imagen_2021-12-07_235134.png
imagen_2021-12-07_235134.png (1.65 MiB) Viewed 1005 times
OtraChica.png
OtraChica.png (473.09 KiB) Viewed 964 times
Chica_44.JPG.png
Chica_44.JPG.png (920.95 KiB) Viewed 932 times
chicaCraquelado.png
chicaCraquelado.png (892.87 KiB) Viewed 927 times
imagen_2022-04-04_180948855.png
imagen_2022-04-04_180948855.png (2.78 MiB) Viewed 813 times
imagen_2022-04-05_220443033.png
imagen_2022-04-05_220443033.png (4.81 MiB) Viewed 809 times
imagen_2022-04-24_030410669.png
imagen_2022-04-24_030410669.png (1.11 MiB) Viewed 732 times
imagen_2022-04-28_213832829.png
imagen_2022-04-28_213832829.png (947.79 KiB) Viewed 724 times
imagen_2022-05-03_230136758.png
imagen_2022-05-03_230136758.png (1.47 MiB) Viewed 721 times
imagen_2022-08-04_233354489.png
imagen_2022-08-04_233354489.png (1.69 MiB) Viewed 668 times
imagen_2022-09-09_203559771.png
imagen_2022-09-09_203559771.png (1.44 MiB) Viewed 628 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