필터 지우기
필터 지우기

Language data in ocr function not working

조회 수: 5 (최근 30일)
Mir Pias
Mir Pias 2016년 7월 17일
편집: Walter Roberson 2016년 7월 17일
I am using matlab 2015b, I have installed ocr language data using visionSupportPackages command. when I use ocr function using language string, it shows following error
Error using ocr
Too many input arguments.
Error in temp (line 5)
txt = ocr(im2,'Language','Bengali');
The code
im = imread('21.jpg');
im = rgb2gray(im);
level = graythresh(im);
im2=im2bw(im, level);
txt = ocr(im2,'Language','Bengali');

채택된 답변

Walter Roberson
Walter Roberson 2016년 7월 17일
Please show the output of
which -all ocr
I suspect you have accidentally created your own ocr.m that is taking priority.
  댓글 수: 1
Mir Pias
Mir Pias 2016년 7월 17일
편집: Walter Roberson 2016년 7월 17일
There is another ocr in the path, problem solved when its removed, Thank you
which -all ocr
C:\Users\gdwgfuvyuadfoadfyode\Google Drive\senior project\MM4-BV4-portfolio\Bijlage\ocr.m
C:\Program Files\MATLAB\R2015b\toolbox\vision\vision\ocr.m % Shadowed

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by