| |
| Publicado el 12,noviembre 2015 - 21:48 |
Hi, for one of my customers I made a scanning application using the standard twain interface. Now they want barcode recognition, to read an ordernumber from the scans.
What option can you guys give me for that? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 12,noviembre 2015 - 22:47 |
Hi Arie,
is it for WinDev or WinDev Mobile ? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2015 - 00:08 |
Hi arie,
are you talking about barcode scanner or normal document scanner ?
rgds, ccc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2015 - 01:02 |
Hey Arie,
What version of WX?
There's a new twain property in WD and possibly WB server - http://doc.windev.com/en-US/…
TwainBarCodeDetectionEnabled
Now I suppose how well this works probably depends on your scanner and it's drivers? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2015 - 09:03 |
Sorry, for not giving enough details,
it a WD19 project using an sql-server database. Upgrade to WD20 is an option.
The application stores A4 transport documents in a blob file. Some of them have a barcode with the ordernumber. I would like to "read" this number and attach the document to the right order in the database. Document are scanned using high-speed scanner which easily scans 30+ pages per minute. After scanning a batch the user attaches the documents to orders now, entering additional info (written by hand on the papers) here and there.
The recognition of the barcode does not necessarily take place during scanning. It may also come afterwards, when the user checks every scanned page. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2015 - 09:11 |
Darren,
interesting, it seems to be a twain option then, whereas the scannerdriver must support this. I dont see any function however on how to read this barcode-info. I will digg into it further |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2015 - 09:30 |
Yeah, that's why I thought it must be embedded in the drivers or the scanners software. You may be lucky as it sounds like you're using a high end scanner :xcool:
Although not cheap, there are a few SDk's out there for this kind of thing; e.g. https://www.leadtools.com/sdk/twain |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2015 - 10:11 |
Yes, saw that too. Atm we are using Kofax stuff. Same pricing model :rolleyes: Afaik the reason for that is, that these driver do the barcode recognision WHILE scanning. After each scan the barcode(s) are available immediately.
There are also a number of SDK's which do image-recognisition, I mean afterwards like https://www.dynamsoft.com Maybe that will do for me. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2015 - 10:47 |
| Yes, it sounds from your requirement that the barcode needs to be linked at different points in the lifecycle, but if your scanner provides the functionality in it's drivers and WD20 can turn the feature on then it's a cheaper option. If the docs need to be re-scanned, can already scanned docs be passed thru the TWAIN driver again by programming? ...sorry don't know enough about TWAIN |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2015 - 15:35 |
Hi Arie
you can use the free ZXING dll/module (supported by google, used to recognize barcodes on android, etc)
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2015 - 19:36 |
Hi Arie,
I did some similiar scanning applications with kofax (no windev) years ago, and if i remember correctly, the kofax software could be configured to deliver a textfile per scanned batch with the barcodes resolved as a number - together with the filename of the document and more details - and the main app had no need to "read" the scanned image (pdf or tif)
hope that helps
regards : heinz |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2015 - 20:06 |
Thanks Heinz, interesting - I will check that out soon |
| |
| |
| | | |
|
| | |
| |
| Publicado el 14,noviembre 2015 - 01:46 |
Just to let you know what is possible in WinDev, I am looking through a scanned document, finding a code 39 bar code and decoding it. It takes 1 to 2 seconds per document which I thought was pretty good and very acceptable for the volume of work I'm processing. This is all done using purely WinDev code.
Some things I learned.
(1) A jpg is inadequate. You need a 300 dpi bmp (or higher resolution). (2) WinDev has a wonderful command that will convert an image into an array of bits. After that FOR EACH is your friend. (3) It definitely helps if you know where to look on the image for the bar code. I look in a couple of known spots and then attempt a whole document search.
In my case the bar code was code 39 and I only needed to decode the digits which limited the pattern recognition that I had to build. When I got a number I could verify it by doing a table lookup. My bar coded number includes a check digitt so if I got a hit in my table, I was very confident I had a good decode. Finally I have a number of years of experience with bar code technology so that was a definite leg up in terms of doing the programming.
A TWAIN driver or external DLL would also get the job done. Just make sure you are using a high resolution setting. Kudos to WinDev for what it can do natively.
Stewart Crisler |
| |
| |
| | | |
|
| | |
| |
| Publicado el 14,noviembre 2015 - 04:02 |
use this .net api . import the dll into wd project https://freebarcode.codeplex.com/
------------------------------------------------------------------------------ M_strs is array of strings = BarcodeScanner.Scan("barcode.png") M_str is string
FOR EACH M_str OF M_strs Info(M_str) END
------------------------------------------------------------------------------------
make sure to cut out the barcode first
dSaveImagePNG(dCrop (dLoadImage("invoice.png"),795,210,224,110),"barcode.png")
hope will help |
| |
| |
| | | |
|
| | |