undefined function or method 'ocr' for input arguments of type 'unit8'

조회 수: 2 (최근 30일)
kishore kumar
kishore kumar 2014년 5월 23일
댓글: kishore kumar 2014년 5월 26일
I am trying to recognize a letter inside the image, I read a .png file and wrote the code as
ocrResults=ocr(im,roi);
i got the error as follows undefined function or method 'ocr' for input arguments of type 'unit8' how could i fix the problem
  댓글 수: 2
John D'Errico
John D'Errico 2014년 5월 23일
You MIGHT get that error for uint8 arguments. unit8 arguments are something that will be more difficult to solve.
Sean de Wolski
Sean de Wolski 2014년 5월 23일
@John, probably the individual typo that I've made the most.

댓글을 달려면 로그인하십시오.

답변 (2개)

Sean de Wolski
Sean de Wolski 2014년 5월 23일
ocr was released in the Computer Vision System Toolbox in R2014a so if you are on an older release or don't have CVST, you will have to upgrade.

Azzi Abdelmalek
Azzi Abdelmalek 2014년 5월 23일
편집: Azzi Abdelmalek 2014년 5월 23일
Try
ocrResults=ocr(double(im),roi);
  댓글 수: 1
kishore kumar
kishore kumar 2014년 5월 26일
i tried that one, i got the same error but instead unit8 i got double.

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by