Error in ocr function
Mostra commenti meno recenti
I'm trying to use the orc function in this way
"ocrRes = ocr(businessCard,'Language','C:\Users\Gio\Desktop\OCR\tessdata\spa.traineddata');" and have this error
Error using tesseractWrapper Internal error using Tesseract
"ocrRes = ocr(businessCard,'Spanish','C:\Users\Gio\Desktop\OCR\tessdata\spa.traineddata');"
Error using ocr>parseInputs (line 209) The argument 'Spanish' is a string scalar or character vector and does not match any parameter names. It failed validation for the argument 'ROI'.
Could you help me Please....
7 Commenti
Muhammad Adil
il 24 Set 2020
am facing same issue if you found solution please share
Error using ocr>parseInputs (line 215)
The argument 'PRO' is a string scalar or character vector and does not match any parameter names. It failed validation for
the argument 'ROI'.
Error in ocr (line 119)
[roi, hasROI, params] = parseInputs(I,varargin{:});
Error in Untitled (line 9)
b=ocr(a,'PRO','C:\Users\mian adil\Desktop\PRO\tessdata\PRO.traineddata')
Walter Roberson
il 24 Set 2020
'PRO' is not a valid option for the ocr() function. The valid options are 'textlayout', 'language', and 'characterset'
Muhammad Adil
il 9 Ott 2020
it works!!!!!! thanku
Muhammad Adil
il 9 Ott 2020


am training above image contain letter 'i'
but it gives error kindly help me to resolve this
Walter Roberson
il 9 Ott 2020
I would try using
dbstop if caught error
and seeing what error is being reported.
Walter Roberson
il 10 Ott 2020
At the command line give the command
dbstop if caught error
then run your code. MATLAB will detect some processing error or other, and in the command window it will tell you what the error was and where the error occurred. You should copy that information and paste it here.
For example it might complain about an index our of range, or about array dimensions mismatch.
Muhammad Adil
il 10 Ott 2020
Risposte (1)
Walter Roberson
il 22 Dic 2017
ocrRes = ocr(businessCard, 'Language', {'Spanish', 'C:\Users\Gio\Desktop\OCR\tessdata\spa.traineddata'});
However it is not clear if it is possible to use both a language name and a path at the same time. You might need
ocrRes = ocr(businessCard, 'Language', 'C:\Users\Gio\Desktop\OCR\tessdata\spa.traineddata');
2 Commenti
Giovanni Gonzalez
il 26 Dic 2017
Muhammad Adil
il 24 Set 2020
Modificato: Walter Roberson
il 24 Set 2020
Error using ocr>parseInputs (line 215)
The argument 'PRO' is a string scalar or character vector and does not match any parameter names. It failed validation for
the argument 'ROI'.
Error in ocr (line 119)
[roi, hasROI, params] = parseInputs(I,varargin{:});
Error in Untitled (line 9)
b=ocr(a,'PRO','C:\Users\mian adil\Desktop\PRO\tessdata\PRO.traineddata')
i need your help to solve this
Categorie
Scopri di più su Text Detection and Recognition in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!