OCR Example for LabWindows/CVI

NI OCR Training Interface

OCR Example for LabWindows/CVI

You can use the OCR example for LabWindowsTM™/CVI™ to classify samples using the file you created with the NI OCR Training Interface Tutorial.

Opening the LabWindows/CVI OCR Example

The location of the example depends on the operating system and version of LabWindows/CVI. To open the example, choose one of the following paths:
  • For LabWindows/CVI 8.5, navigate to <CVI>\Samples\Vision\2.Functions\OCR\OCR First Example.prj, where <CVI Application> is the location to which you installed LabWindows/CVI.
  • For LabWindows/CVI 8.5.1 on Windows Vista, navigate to C:\Users\Public\Documents\National Instruments\CVI\Samples\Vision\2.Functions\OCR\OCR First Example.prj.
  • For LabWindows/CVI 8.5.1 on Windows XP/2000, navigate to C:\Documents and Settings\All Users\Documents\National Instruments\CVI\Samples\Vision\2.Functions\OCR\OCR First Example.prj.

Using the LabWindows/CVI OCR Examples

  1. Select Build»Configuration»Debug, and then Select Run»Debug OCR First Example.exe to run the example.
  2. Click Open Character Set File and open the NIOCRTutorial.abc file you created upon completing the OCR Training Interface Tutorial.
  3. Click Open Image, select one of the NIOCRExample* image files, and click Load.
  4. 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.
  5. Click Quit to exit the example.