Autor Beitrag
chukalv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44



BeitragVerfasst: Di 21.03.06 09:01 
1. Got an png image with 4 digits drawn on it (font Arial, black & white, no rotation, no grain...)
2. Need to make a program that reads the digits
3. Read all the topics about OCR, neural networks in this forum and in the google and found out that:
The way to do that is to use an OCR component. How the things are working understood. First of all I have to teach the OCR engine to know how are the digits look like (neural networks)... The engine then makes a pattern and if something in the image matches the pattern, then the engine thinks that it`s a digit or a letter...
4. Found some shareware solutions like:
"OCR Toolkit for Delphi" - does the job fifty/fifty. I can learn the program the digits quite fast..
"Leadtools OCR" - not worked for me :(


5. As the prices (5000$) are too large for me, didn`t tested other available components. Then searched for some freeware tools.
Found one even opensource - [url=jocr.sourceforge.net/]GOCR[/url]

6. As I`m bad on other programming languages (i think it`s written on C) I don`t know how to use it on Delphi.

And the question is "How to use Gocr opensource on Delphi?"
or "Are there other components that are working and are freeware?"

P.S. Sorry about the english. The job has done only for experimental-study works.
N8Falter74
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 53

Win XP
D7 Prof
BeitragVerfasst: Di 21.03.06 09:38 
Hi,

i think GOCR is the right choice for your Problem.
Zitat:
Got an png image with 4 digits drawn on it (font Arial, black & white, no rotation, no grain...)

GOCR is avaiable as Windows Command Line Tool and could be completely controlled by eg. ShellExecute.
You only have to convert the png Image to an PPM Bitmap because GOCR only reads PPM Bitmaps. A commandline converter is in the GOCR Archive.

Try It.

regards
chukalv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44



BeitragVerfasst: Di 21.03.06 11:51 
oops! Didn`t saw DOS/Windows binnary :oops:

Played around the GOCR. Works perfectly woth font Arial, black & white, no rotation, no grain

But has some problems with images like:
user defined image

In the example it recognizes only the last number 6. Althought it removes perfectly the grain and has no problems with the small rotation...
I used this command line:
ausblenden Quelltext
1:
gocr -d 20 - n 1 image.ppm					


There is not much infromation about what the gocr really can do... Can I make my own patterns or so? Or add some more options to work with it more perfectly?
N8Falter74
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 53

Win XP
D7 Prof
BeitragVerfasst: Di 21.03.06 11:57 
Oh, you want to recognize Chaptas :-)

Sorry, but i this case i won't help.
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Di 21.03.06 12:11 
Because the solutions described in this topic could be abused, I closed it. This is not a final decision, there will be an internal discussion.
If the decision is revised, we will open this topic again.
Dieses Thema ist gesperrt, Du kannst keine Beiträge editieren oder beantworten.

Das Thema wurde von einem Team-Mitglied geschlossen. Wenn du mit der Schließung des Themas nicht einverstanden bist, kontaktiere bitte das Team.