フィルターのクリア

OCR training cannot train data error

1 回表示 (過去 30 日間)
Abdullah Azzam
Abdullah Azzam 2021 年 7 月 15 日
回答済み: Anshika Chaurasia 2021 年 9 月 15 日
Hi All
I have been trying to train ocr to read digital numbers of scale after doing some process on the pictures such as cropping masking...etc. However, When I train the data I, it keeps giving me this error even though the number of samples for training is more than requried I also tried to increase that but same issue still happening. How may I fix this issue so that I can train the ocr to accuratly read my digits. I have tried to use the build in liberary for the ocr to read the digits but it keeps giving either wrong readings or no readings at all.
  1 件のコメント
Abdullah Azzam
Abdullah Azzam 2021 年 7 月 15 日
on the help center they have this note regards this topic. But they didn't mention how to check that so I can test it.

サインインしてコメントする。

回答 (1 件)

Anshika Chaurasia
Anshika Chaurasia 2021 年 9 月 15 日
Hi Abdullah,
Sometimes other Tesseract installations set an environment variable that can conflict with how MATLAB searches for Tesseract data files. You can check if this is set by doing the following from MATLAB:
getenv('TESSDATA_PREFIX')
The result of that command should be an empty string.
If it is not an empty string, then you should execute this command prior to running the "ocrTrainer":
setenv('TESSDATA_PREFIX','');
Hope it helps!

カテゴリ

Help Center および File ExchangeLanguage Support についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by