I have a jpeg file that contains a barcode
Is it possible to create a function to which passed the file name as parameter manages to open it and interpret the barcode code?
http://www.marcoboschi.it/public/barcode.jpg

many thanks
info@marcoboschi.it

Hola, ¿tienes un lector de código de barras de teclado? Si lee, puede usar HBCOMM.LIB para leer cualquier GET.
Hello, do you have a Keyboard Barcode READER? If it reads, you can use HBCOMM.LIB to read any GET.
Regards, saludos.
Para probar, utilice el Keyboard Reader mediante el comando PROMPT, o en cualquier editor de texto tipo EditPad.exe para ver si el código sale intacto en el editor o en el comando PROMPT.
To test, use the Keyboard Reader via command PROMPT, or in any text editor type EditPad.exe to see if the code comes out intact in the editor or in the command PROMPT.
Regards, saludos.
Do mean that the images will be read and that you want to read the barcode without scanning it with a barcode reader ?
Not seen this in the forum.
Scanning is like Karinha says. We can provide a sample if needed.
hi,
you can use GetPixel() Function to read each Pixel of a Image.
while Barcode have only B/W Result is easy to identify
but it is a very slow Solution

ZBar Bar Code Reader is an open source software suite for reading bar codes
from various sources, such as video streams, image files and raw intensity
sensors. It supports EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39,
Interleaved 2 of 5 and QR Code. Included with the library are basic
applications for decoding captured bar code images and using a video device
(eg, webcam) as a bar code scanner. For application developers, language
bindings are included for C, C++, Python and Perl as well as GUI widgets for
Qt, GTK and PyGTK.
Check the ZBar home page for the latest release, mailing lists, etc.
http://zbar.sourceforge.net/
Many thanks
![]()
![]()
c:\Program Files (x86)\ZBar\bin>zbarimg marco.jpg
EAN-13:1234567890128
scanned 1 barcode symbols from 1 images