I am doing OCR in my project using tesseract . I have used images with 72 dpi .But it is given me output far from accuracy . I have read somewhere that it is well to give input above 200 dpi. But what is the standard image configurations i.e. size, dpi, file format etc for tesseract library ?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- back button text does not change
相关文章
- 现在使用swift开发ios应用好还是swift?
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
Found an answer in FAQ in Tesseract.Read the question:Is there a Minimum Text Size? (It won't read screen text!).
Hope it helps.
The Tesseract engine by itself does not give very good results unless you apply some image pre-processing to the image...
here is what I did and achieved almost 95% accuracy...
convert the UIImage to greyscale and apply autoLocalThreshold to the image.. for this I used a class I found on the net.. and also keep in mind if you are resizing the image you maintain the aspect ratio and the image editing code is correct because there is lot of code which can corrupt the image without you knowing it.. so here is some code if it helps you..
Image Class to convert the greyscale and autolocalthreshold...
and here is how you use it...
here the imageProcessing contains methods to start Tesseract and other related functions...
I will submit the .mm for image as separate answer...
Here is the second part of my answer due to character limit..
here is the .mm
.m
I am not sure it will show accurate output for any resolution. I was trying yesterday the same thing. I grabbed image from camera for high resolution image. I also uploaded low resolution image from photo library. But it didn't worked. I guess you need to make some more search here.
Please see if OCR Api Service can help you. You can try out this demo. There is some credential issue in the demo. You need to provide one. But I am not sure which credentials are required. Check if this can help you.