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

조회 수: 2 (최근 30일)
Abhishek Kashyap
Abhishek Kashyap 2018년 9월 5일
편집: Abhishek Kashyap 2018년 9월 5일
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.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by