Language in OCR function is not working
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Language Support in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!