Image recognition of numbers
Show older comments
Hello
I'm taking a photo of some images and trying to recognize automatically what number i have.
Attaching an example where i coudn't recognize the image even though it's easy to see with the eye.
both str2double(ocrOutput.Text) and ocrOutput.WordConfidences
Are empty.
Any idea how to settle this?
ocrOutput = ocr(TEMP, 'TextLayout', 'Line', 'characterSet', '0123456789')
Accepted Answer
More Answers (1)
Try changing the specified Layout type to 'word'
load image
imshow(TEMP)
ocrOutput = ocr(TEMP, 'TextLayout', 'word', 'characterSet', '0123456789')
Categories
Find more on Text Detection and Recognition 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!

