Install OCR Language Data Files
OCR Language Data files contain pretrained language data from
the OCR Engine, tesseract-ocr,
to use with the
After you install third-party support files, you can use the data with the Computer Vision Toolbox™ product. To install the Add-on support files, use one of the following methods:
Select Get Add-ons from the Add-ons drop-down menu from the MATLAB® desktop. The Add-on files are in the “MathWorks Features” section.
visionSupportPackagesin a MATLAB Command Window and follow the prompts.
You must have write privileges for the installation folder.
When a new version of MATLAB software is released, repeat this process to check for updates. You can also check for updates between releases.
Pretrained Language Data and the
After you install the pretrained language data files, you can specify one or more additional
languages using the
Language property of the
ocr function. Use the appropriate language character vector with the
property. For faster performance using the builtin models (including any additional
installed language models), you can append
-fast to the language
model string. For example,
txt = ocr(img,"Language","finnish");