Why is ocr not working in this case
Show older comments
Hello,
I have a picture with text written on it and ocr doesn't work on it
I = imread('image1_bw.png');
imshow(I);
roi = [117,82,307,213];
hold on
rectangle('Position',roi,'EdgeColor','r')
hold off
text=ocr(I,roi)
I should add that on my machine the result is different as I get
Text: ''
Probably because the version is different I'm using the 2021a release and the version 10.0 of the computer toolbox
I have no idea why ocr is not working in this case. If someone has a fix it will be very helpfull :)
Accepted Answer
More Answers (1)
Image Analyst
on 28 Mar 2023
0 votes
ocr() has lots of options. Try experimenting wtih them.
Categories
Find more on Convert Image Type 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!