Main Content

Install OCR Language Data Files

OCR Language Data files contain pretrained language data from the OCR Engine, tesseract-ocr, to use with the ocr function.

Installation

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:

  • If you are viewing the current page using installed documentation, click

  • 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.

  • Type visionSupportPackages in a MATLAB Command Window and follow the prompts.

Note

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 ocr function

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, "english-fast".

txt = ocr(img,"Language","finnish");

 List of OCR language data in support package

See Also

Apps

Functions

Objects

Related Topics