OCR LabWindows/CVI Example Overview

NI OCR Training Interface

OCR LabWindows/CVI Example Overview

You can use OCR First Example to perform OCR on an image using the character set file you created with the OCR Training Interface Tutorial.

Complete the following steps to use OCR First Example:

  1. Navigate to <CVI>\samples\Vision\2.Functions\OCR\OCR First Example.prj, where <CVI> is the location to which you installed LabWindows/CVI.
  2. Click Build»Configuration»Debug, and then click Run»Debug OCR First Example.exe to run the example.
  3. Click Open Character Set File and open the NIOCRTutorial.abc file you created upon completing the OCR Training Interface Tutorial.
  4. Click Open Image, select one of the NIOCRExample* image files, and click Load.
  5. Draw an ROI on the image and click Read.
    • Read String displays the recognized characters and the substitution character.
    • Time (ms) displays the amount of time it took OCR to read the image.
  6. Click Quit to exit the example.