フィルターのクリア

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 Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by