Page 1 of 2

EZScan, Barcode, OCR Testing

PostPosted: Thu Feb 16, 2012 9:35 pm
by Gale FORd
I have been testing different scanning, barcode, and ocr libraries.
So far I think EZScan is the way I am going to go.

I thought you might like to try out my EZScan test program.
For the OCR to work you will need to download and install demo version of Transym OCR

Compiled EXE and Source version with freeimage and some images (4meg).
http://www.wwrowland.com/DownloadFiles/testscancomplete.zip
Just source code and images (<1meg)
http://www.wwrowland.com/DownloadFiles/testscansource.zip

It requires a couple of modified programs.
tscan.prg // Added OCR and other functions
image.prg // Added extra functions and methods
but everything is listed in testscan32.prg

This test program allows me to do some of the following:
    Scan new images or open images from disk.
    Recognize barcodes on image
    Band an area on screen and have it OCR that area to text.
    View image with size/zoom/panning.
    Resize window and it sizes image automatically.

It took me awhile to find and test some of the techniques used and I would still like to improve them but you might as well check it out.
I use xHarbour.com builder so it is not tested with other compilers.
Enjoy.

Re: EZScan, Barcode, OCR Testing

PostPosted: Fri Feb 17, 2012 3:45 am
by dutch
Dear Gale,

It is very good example for TOCR. Has it got distribution (royalty fee) cost for DLL.

Regards,
Dutch

Re: EZScan, Barcode, OCR Testing

PostPosted: Fri Feb 17, 2012 5:09 am
by RAMESHBABU
Mr.Gale,

Nice work :D .

When I tried to compile the programs alongwith the "eztwain3.lib",
it is generating an error that : "eztwain3.lib contains invalid OMF record." !

Please guide me how to compile.

Regards

-Ramesh Babu P

Re: EZScan, Barcode, OCR Testing

PostPosted: Fri Feb 17, 2012 7:12 am
by RAMESHBABU
Mr.Gale,

I could build the EzTwin3.lib using Borland BCC82 : IMPLIB EzTwin3.lib EzTwin3.dll command
and build the Executable.

Thanks

-Ramesh Babu P

Re: EZScan, Barcode, OCR Testing

PostPosted: Sun Feb 19, 2012 9:00 am
by Antonio Linares
Gale,

Great example, many thanks :-) I have uploaded a copy of it to our FiveWin free contributions at: http://code.google.com/p/fivewin-contributions/downloads/list Hope you don't mind it.

When I try to use the OCR I get this alert: "Transym OCR engine not installed". How to proceed to use the OCR ? thanks! :-)

Re: EZScan, Barcode, OCR Testing

PostPosted: Sun Feb 19, 2012 7:17 pm
by Gale FORd
Feel free to use it.
You have to install the Transym OCR software. You can download it from http://www.transym.com
I have been testing the demo version for about 45 days and it still works ok.

FYI my plan for this software:
We have 8 locations in Texas and Tennessee. We create about 600 to 1000+ forms a day on old Okidata dot matrix printers using multi-part pre-printed forms. They need to be scanned because there are signatures and damage information written on documents. There is also no room for barcodes so I thought of using OCR.
So here is the plan.
Each location scans the documents to a folder in our HQ office in Houston.
A computer in Houston will monitor the folder and OCR an area on document to get the location and reference #.
Looks up the rest of the index information and stores the document in the proper location for later viewing on demand.

Re: EZScan, Barcode, OCR Testing

PostPosted: Sun Feb 19, 2012 7:27 pm
by Gale FORd
Sorry Dutch I did not notice your post.
I do not think there is a distribution license. It seems to be per user.
I intend to use it more in a server mode than end user.

Re: EZScan, Barcode, OCR Testing

PostPosted: Sat Feb 25, 2012 1:37 pm
by Andrés González
Ramesh Babu, I have de same problem as you: Error: 'G:\FWH\SAMPLES\TOCR\LIB\EZTWAIN3.LIB' contains invalid OMF record, type 0x21 (possibly COFF). I'm using BCC55, I try implib but it build a empty lib. Could you tell me how to solve it.

Thanks

Re: EZScan, Barcode, OCR Testing

PostPosted: Sat Feb 25, 2012 11:56 pm
by RAMESHBABU
Hello Andrés,

I am using bcc582. There is an utility in the bin folder "IMPLIB.EXE"

Use the following command to create the required LIB.

IMPLIB eztwain3.lib eztwain3.dll

Your lib is ready. :)

Thats all

Regards,

-Ramesh Babu P

Re: EZScan, Barcode, OCR Testing

PostPosted: Sun Feb 26, 2012 8:45 am
by Andrés González
Thanks Ramseh, I did twice and now is OK.

Mr Gale, very good contribution, thanks.

Re: EZScan, Barcode, OCR Testing

PostPosted: Sun Feb 26, 2012 11:06 am
by dutch
Dear Gale,

Do you know why EZTWAIN doesn't found buitin webcam on Windows7?

Regards,
Dutch

Re: EZScan, Barcode, OCR Testing

PostPosted: Mon Feb 27, 2012 3:15 pm
by Gale FORd
It does not work for me either. Searching on Google I can't find anyone with a solution to get Windows 7 webcam to work with twain. I have a Dell laptop with Windows 7.

Re: EZScan, Barcode, OCR Testing

PostPosted: Mon Feb 27, 2012 9:24 pm
by dutch
Dear Gale,

Thanks for your reply, the EZTWAIN is working on Windows XP well but Windows7 has got the trouble.

Dutch

Re: EZScan, Barcode, OCR Testing

PostPosted: Tue Feb 28, 2012 2:55 am
by Andrés González
Just an incomodity, when I compile the sample with the new eztwain3.lib, it compile ok. But when I run the program it always ask for the eztwain3.dll. If I put the dll it's run ok. It's that normal? I thought it had to run without this dll.

Re: EZScan, Barcode, OCR Testing

PostPosted: Tue Feb 28, 2012 3:06 am
by dutch
Dear Andrés,

It's required, the DLL is the cost that we must pay around 99US$. It is the evaluation version.

Regards,
Dutch