OCR Example for Microsoft Visual Basic
You can use the OCR example for Microsoft Visual Basic 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 the OCR example for Microsoft Visual Basic:
- Open the example.
- For Microsoft Visual Basic 6.0, navigate to <Vision>\Examples\MSVB\2.Functions\OCR, where <Vision> is the location to which you installed the NI Vision Development Module, and open the OCR First Example.vbp file.
- For Microsoft Visual Basic .NET, navigate to <Vision>\Examples\MSVB.NET\2.Functions\OCR, where <Vision> is the location to which you installed the NI Vision Development Module, and open the OCR First Example.vbproj file.
- 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 Open.
- Draw an ROI on the image.
- 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.