Why am I unable to read readings of an Image using ocr?

2 visualizaciones (últimos 30 días)
Abhishek Kashyap
Abhishek Kashyap el 5 de Sept. de 2018
Editada: Abhishek Kashyap el 5 de Sept. de 2018
I am unable to read numbers from any image like this. First I used the code:
i=imread('speed.jpg');
i= imresize(i, 1.4);
f= ocr(i,'CharacterSet','.0123456789');
recognizedText = f.Words;
the output i get is:
' '
' 1 . 5 '
'91 11 915 021 '
' 011 '
'106 9059'
Then I tried using a better code by binarizing, dilating, and using regionprops for a better solution. This time, I don't get the output at all. The above code works perfectly for other images with numbers in linear fashion. Please help.

Respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by