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