OCR: How to extend the character set for german language OCR model set by additional characters?
29 views (last 30 days)
Show older comments
Frank
on 10 Dec 2024 at 19:36
Commented: Frank
on 12 Dec 2024 at 18:22
My documents in german language contain "§". The character set of the model of german language pack used for OCR does not contain this character, but english model does ... The aim is to enable OCR to recognize this special character in german language documents.
How to extend the character set of german laguage model by "§" (or another character)?
I checked a lot of search requests but did not found an example or an answer to solve this.
Thanks a lot!
Frank
0 Comments
Accepted Answer
Sreeram
on 12 Dec 2024 at 5:33
Hi Frank,
To enable OCR to recognise the "§" character in German language documents, you may train a new OCR model on "§" by fine-tuning the German model using the “trainOCR” function. Detailed instructions can be found in the following documentation:
If training a new model is not feasible, you may specify multiple models (German and English) to use for detection simultaneously. This can be done by passing them as a cell array in “Model” argument of the “ocr” function as specified in the following documentation:
ocr(I,model={"german","english"})
Note that this approach might result in some German characters being misclassified as English.
I hope this helps!
3 Comments
More Answers (0)
See Also
Categories
Find more on Language Support in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!