Recognizing text from a picture in delphi
10,722
Solution 1
You will have to head for a OCR (Optical Character Recognition) library. This is a pretty complex procedure, I believe you wouldn't be asking this question if you knew any way to implement this by yourself.
A quick Google yielded this result, maybe it's of help for you: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1623&lngWId=7
Solution 2
Look here:
https://forums.embarcadero.com/message.jspa?messageID=29331
Solution 3
Take a look at my answer about NeuroVCL OCR here. There is a lot of useful info and sample Delphi OCR DCU components.
Author by
dzibul
Updated on June 19, 2022Comments
-
dzibul almost 2 years
i need an advice on how to approach this problem. I have some picture data: *.jpg, *.bmp ... and i need to extract the data from it. The data is alphanumeric text. I work in delphi.
-
dzibul over 13 yearsyes, you are right, the easier way is to find some tool that can do this work for me, but if anyone can point directions from where to start solving this problem manually by coding i'll be also greatful
-
David Heffernan over 13 years@dzibul Are you serious? This is a frightfully hard problem that huge armies of exceedingly clever people have been trying to solve since computers were invented.
-
Eugene Mayevski 'Callback over 13 years@dzibul if you have several man-years of free time and solid background in programming and academic knowledge of math, then you will find plenty of information about writing your own recognizer. Otherwise take an existing solution.
-
dzibul over 13 years@david & @eugene: Yes, i know that is a big problem. I wondered if i can do that with cutting letters from picture, than comparing pixels from picture and from a sample letter. The right letter will be one that has the most pixels identical. Since the text from picture is machine text (not handwriting), i figured that it won't be so hard (but i appreciate the suggestion that i'm aiming high)
-
Sertac Akyuz over 13 years@dzibul - Maybe you'd like to have a look at 'SubRip's source. Developed with Delphi, it's a program that extracts subtitles (converts to text) from video streams. Since your letters are not handwritten a similar approach could help.
-
Misha over 13 yearsIf it the image is auto-generated there is a solution that doesn't require OCR. I just need to know what you are recognising first.
-
TLama over 10 years...or better to say "maybe were"... The link is now dead.