Documentation
Documentation
You can access the NI OCR Training Interface from the Start menu if the
NI Vision Development Module is installed. You can also access the NI
OCR Training interface from within NI Vision Assistant or NI Vision
Builder for Automated Inspection (Vision Builder AI).
From the Start Menu
To launch the OCR Training Interface from the Start menu, select
Start»All Programs»National Instruments»Vision»OCR Training.
From Vision Assistant
The OCR Training Interface opens from Vision Assistant in a wizard to
guide you through the creation of a new template. Complete the following
steps to launch the OCR Training Interface wizard in Vision Assistant.
1. Acquire or open an image that contains the characters you want
to read. Refer to the NI Vision Assistant Help for information
about acquiring or opening images.
2. To access the OCR/OCV Setup panel, select
Identification»OCR/OCV, or click OCR/OCV on the
Identification tab of the Processing Functions palette.
3. Click New Character Set File on the Main tab of the OCR/OCV
Setup panel.
From Vision Builder AI
The OCR Training Interface opens from Vision Builder AI in a wizard to
guide you through the creation of a new template. Complete the following
steps to launch the OCR Training Interface wizard in Vision Builder AI.
1. Acquire, or simulate the acquisition of, an image that contains the
characters you want to read. Refer to the Vision Builder for
Automated Inspection: Configuration Help for information about
acquiring images or simulating acquisitions.
2. On the Identify Parts tab of the Inspection Steps palette, click
Read/Verify Text.
3. Select the Mode tab on the Read/Verify Text Setup panel, and
click New Character Set File.
OCR Training Interface Tutorial
This tutorial walks you through the steps for training characters with OCR
using a specific set of images. This tutorial illustrates the various steps
required to train varying representations of the same characters.
This tutorial includes the following sections:
Training Characters with OCR
Reviewing Character Specifications
Saving the Character Set File
Training Characters with OCR
Complete the following steps to train characters with OCR:
1. Launch the OCR Training Interface.
2. Select File»Open Images.
3. Complete one of the following sets of steps to open the tutorial
images:
NI Vision and Vision Assistant
a. Navigate to <Vision>\Images\OCR Tutorial, where
<Vision> is the location to which you installed the
NI Vision Development Module.
b. Select the following images:
Tip You can select multiple image files by
pressing the <Ctrl> key and clicking each
file. Enable the Select all files checkbox to
open all images in the directory you
specified.
NIOCRExample1.tif
NIOCRExample2.tif
NIOCRExample3.tif
NIOCRExample4.tif
NIOCRExample5.tif
c. Click Open.
Vision Builder AI
a. Navigate to <Vision Builder AI>\DemoImg\OCR,
where <Vision Builder AI> is the location to which
you installed Vision Builder AI.
b. Select the following images:
Tip You can select multiple image files by
pressing the <Ctrl> key and clicking each
file. Enable the Select all files checkbox to
open all images in the directory you
specified.
NIOCRExample1.tif
NIOCRExample2.tif
NIOCRExample3.tif
NIOCRExample4.tif
NIOCRExample5.tif
c. Click Open.
4. Use the navigation buttons to locate NIOCRExample1.tif.
5. Verify that the Rotated Rectangle Tool is selected on the
OCR Training Interface toolbar. On the image, draw a region of
interest (ROI) around the characters.
Tip When you draw the ROI, exclude the barcode, but
ensure that the region you draw is large enough to
encompass possible locations of characters in the other
images you analyze.