Chapter5 MachineVision
IMAQVision for LabWindows/CVI User Manual 5-28 ni.com
UseimaqFindLCDSegments() to calculate the regions of interest around
eachdigit in an LCD or LED. To find the area of each digit, all the segments
ofthe indicator must be activated.Use imaqReadLCD() to read multiple
digits of an LCD or LED.
Use imaqReadBarcode()to read values encoded in 1D barcodes. First,
specify ar egionof interest that encloses the barcode informati on, and
specify the type of barcode. Then, read the barcode.
Display ResultsYou can display theresults obtained at various stages of you inspection
processon t he window that displays your inspection image. You can do
thisby overlaying information on an image. The software attaches the
information that you want to overlay to the image, but it does not modify
the image. The overlay appears every time you display the image in an
externalwindow.
Use the followingfunction s to overlaysearch regions, inspection results,
andother information, such as text and bitmaps.
•imaqOverlayPoints()—Overlayspoints on an image. Specify a
point byits x-coord inate and y-coordinate.
•imaqOverlayLine()—Overlaysa line on an image. Specify a line
byits start and end points.
•imaqOverlayRect()—Overlaysa rectangle on an image.
•imaqOverlayOval()—Overlaysan oval or a circle on the image.
•imaqOverlayArc()—Overlaysan arc on the image.
•imaqOverlayMetafile()—Overlaysa metafile on the image.
•imaqOverlayText()—Overlaystext on an image.
•imaqOverlayROI()—Overlaysan ROI on an image.
•imaqOverlayClosedContour()—Overlaysa closed contour on an
image.
•imaqOverlayOpenContour()—Overlaysan open contour on an
image.
Touse these functions, pass in the image on which you want to overlay
informationand the information that you want to overlay.You can select the
color of overlaysby using the above functions.