EZScan, Barcode, OCR Testing

EZScan, Barcode, OCR Testing

Postby Gale FORd » Thu Feb 16, 2012 9:35 pm

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.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: EZScan, Barcode, OCR Testing

Postby dutch » Fri Feb 17, 2012 3:45 am

Dear Gale,

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

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: EZScan, Barcode, OCR Testing

Postby RAMESHBABU » Fri Feb 17, 2012 5:09 am

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
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: EZScan, Barcode, OCR Testing

Postby RAMESHBABU » Fri Feb 17, 2012 7:12 am

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
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: EZScan, Barcode, OCR Testing

Postby Antonio Linares » Sun Feb 19, 2012 9:00 am

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! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: EZScan, Barcode, OCR Testing

Postby Gale FORd » Sun Feb 19, 2012 7:17 pm

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.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: EZScan, Barcode, OCR Testing

Postby Gale FORd » Sun Feb 19, 2012 7:27 pm

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.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: EZScan, Barcode, OCR Testing

Postby Andrés González » Sat Feb 25, 2012 1:37 pm

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
Saludos

Andrés González desde Mallorca
User avatar
Andrés González
 
Posts: 628
Joined: Thu Jan 19, 2006 10:45 am
Location: Mallorca

Re: EZScan, Barcode, OCR Testing

Postby RAMESHBABU » Sat Feb 25, 2012 11:56 pm

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
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: EZScan, Barcode, OCR Testing

Postby Andrés González » Sun Feb 26, 2012 8:45 am

Thanks Ramseh, I did twice and now is OK.

Mr Gale, very good contribution, thanks.
Saludos

Andrés González desde Mallorca
User avatar
Andrés González
 
Posts: 628
Joined: Thu Jan 19, 2006 10:45 am
Location: Mallorca

Re: EZScan, Barcode, OCR Testing

Postby dutch » Sun Feb 26, 2012 11:06 am

Dear Gale,

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

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: EZScan, Barcode, OCR Testing

Postby Gale FORd » Mon Feb 27, 2012 3:15 pm

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.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: EZScan, Barcode, OCR Testing

Postby dutch » Mon Feb 27, 2012 9:24 pm

Dear Gale,

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

Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: EZScan, Barcode, OCR Testing

Postby Andrés González » Tue Feb 28, 2012 2:55 am

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.
Saludos

Andrés González desde Mallorca
User avatar
Andrés González
 
Posts: 628
Joined: Thu Jan 19, 2006 10:45 am
Location: Mallorca

Re: EZScan, Barcode, OCR Testing

Postby dutch » Tue Feb 28, 2012 3:06 am

Dear Andrés,

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

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 57 guests