FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour EZScan, Barcode, OCR Testing
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
EZScan, Barcode, OCR Testing
Posted: Thu Feb 16, 2012 09: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.
    [/list:u]

    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.
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: EZScan, Barcode, OCR Testing
Posted: Fri Feb 17, 2012 03: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 2304 / 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)
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
Re: EZScan, Barcode, OCR Testing
Posted: Fri Feb 17, 2012 05: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

Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
Re: EZScan, Barcode, OCR Testing
Posted: Fri Feb 17, 2012 07: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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: EZScan, Barcode, OCR Testing
Posted: Sun Feb 19, 2012 09: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
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: EZScan, Barcode, OCR Testing
Posted: Sun Feb 19, 2012 07: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.
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: EZScan, Barcode, OCR Testing
Posted: Sun Feb 19, 2012 07: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.

Posts: 632
Joined: Thu Jan 19, 2006 10:45 AM
Re: EZScan, Barcode, OCR Testing
Posted: Sat Feb 25, 2012 01: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
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
Re: EZScan, Barcode, OCR Testing
Posted: 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

Posts: 632
Joined: Thu Jan 19, 2006 10:45 AM
Re: EZScan, Barcode, OCR Testing
Posted: Sun Feb 26, 2012 08:45 AM

Thanks Ramseh, I did twice and now is OK.

Mr Gale, very good contribution, thanks.

Saludos



Andrés González desde Mallorca
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: EZScan, Barcode, OCR Testing
Posted: 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 2304 / 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)
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: EZScan, Barcode, OCR Testing
Posted: Mon Feb 27, 2012 03: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.

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: EZScan, Barcode, OCR Testing
Posted: Mon Feb 27, 2012 09: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 2304 / 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)
Posts: 632
Joined: Thu Jan 19, 2006 10:45 AM
Re: EZScan, Barcode, OCR Testing
Posted: Tue Feb 28, 2012 02: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
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: EZScan, Barcode, OCR Testing
Posted: Tue Feb 28, 2012 03: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 2304 / 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)