Why can't OCR detect the text in this photo?
5 views (last 30 days)
Show older comments
Alex Valente
on 17 Jul 2020
Answered: Bjorn Gustavsson
on 17 Jul 2020
I am trynig to detect all the text the attached photo. I have have use the OCR function and it can't detect it for what ever reason. I have done the traditional blur/filter, edge detect, and then OCR, as well as OCR on the original image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333090/image.jpeg)
0 Comments
Accepted Answer
Bjorn Gustavsson
on 17 Jul 2020
It seems to have something to do with automatic thresholding. If I cut out most of the black background it seems to work just fine, if too much of that black is included no characters are found. This presumably means that somewhere there's a thresholding that if theres too much proper black (or white if you take the negative of this image) the entire gray area is lumped together into a unseparated white region?
(Our vision is very good at this task, computers can still be easily fooled by things we would never fall for. On the other hand: optical illusions...)
HTH
0 Comments
More Answers (0)
See Also
Categories
Find more on Language Support in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!