Language in OCR function is not working
2 ビュー (過去 30 日間)
古いコメントを表示
I am using Matlab R2014a? I done my code to extract the words using in a image using ocr function. it works fine in Engish. but for Tamil language, eventhough u download tam.traineddata, it produce an error message as Subscript indices must either be real positive integers or logicals.
Error in ocr>getLanguageInfo (line 464) lang{i} = params.Language{i}(indexStart(end):indexEnd(end));
Error in ocr>parseParams (line 393) [tessdata, lang] = getLanguageInfo(params);
Error in ocr>tesseract (line 130) tessOpts = parseParams(params);
Error in ocr (line 114) [rawtext, metadata] = tesseract(params, img, roi, hasROI);
Error in main>WordReg_Callback (line 132) txt = ocr(grayImage, 'Language', ...
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in main (line 42) gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)main('WordReg_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
in the code
txt = ocr(grayImage, 'Language', ...
{'eng.traineddata',...
'tam.traineddata'});
Pleas help to solve this problem
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Language Support についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!