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.
Recognizing text from a picture in delphi
Asked Answered
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
yes, 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 –
Orelu
@Orelu 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. –
Keble
@Orelu 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. –
Fearless
@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) –
Orelu
@Orelu - 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. –
Prosperity
If 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. –
Nonalignment
...or better to say "maybe were"... The link is now dead. –
Preform
Take a look at my answer about NeuroVCL OCR here. There is a lot of useful info and sample Delphi OCR DCU components.
© 2022 - 2024 — McMap. All rights reserved.