National Instruments IMAQTM Digital Camera User Manual


 
Chapter 1 Introduction to IMAQ Vision
IMAQ Vision for Visual Basic User Manual 1-4 ni.com
niocr.ocx
niocr.ocx provides one ActiveX control and a collection of ActiveX
objects you use in a machine vision application to perform optical character
recognition (OCR).
NIOCR control
Use this control to perform OCR, which is the process by which the
machine vision software reads text and/or characters in an image. OCR
consists of the following two procedures:
Training characters
Reading characters
Training characters is the process by which you teach the machine vision
software the types of characters and/or patterns you want to read in the
image during the reading procedure. You can use IMAQ Vision to train any
number of characters, creating a character set, which is the set of characters
that you later compare with objects during the reading procedure. You store
the character set you create in a character set file. Training might be a
one-time process, or it might be a process you repeat several times, creating
several character sets to broaden the scope of characters you want to detect
in an image.
Reading characters is the process by which the machine vision application
you create analyzes an image to determine if the objects match the
characters you trained. The machine vision application reads characters in
an image using the character set that you created when you trained
characters.
cwmv.ocx
cwmv.ocx contains one ActiveX control and a collection of ActiveX
objects. Refer to the ActiveX Objects section for more information about
ActiveX objects.
CWMachineVision control
Use this control to perform high-level machine vision tasks, such as
measuring distances. This control is written entirely in Visual Basic using
the methods on the CWIMAQVision and CWIMAQViewer controls. The
source code for the CWMachineVision control is included in the product.
For more information about CWMachineVision methods, refer to
Chapter 5, Performing Machine Vision Tasks.