Main Content

OCR Trainer

Train an optical character recognition model to recognize a specific set of characters


The OCR Trainer app allows you to label character data for OCR training interactively and to generate an OCR language data file for use with the ocr function.


The OCR Trainer app is not supported on macOS machines with Apple silicon chips.

OCR Trainer app

Open the OCR Trainer App

  • MATLAB® Toolstrip: On the Apps tab, under Image Processing and Computer Vision, click the app icon.

  • MATLAB command prompt: Enter ocrTrainer.

Programmatic Use

expand all

ocrTrainer opens the OCR Trainer app.

ocrTrainer(sessionFile) opens the app and loads a saved OCR training session. sessionFile is the path to the MAT file containing the saved session.

Version History

Introduced in R2016a

expand all