imaqFindLCDSegments

NI Vision for LabWindows/CVI Function

imaqFindLCDSegments

Usage

int imaqFindLCDSegments(ROI* roi, const Image* image, const LCDOptions* options);

Purpose

Takes a region of interest (ROI) with a single rectangular contour around an entire seven-segment LCD and updates the ROI to contain several rectangular contours, each around a single LCD digit. You can then process this modified ROI with the imaqReadLCD() function.

Note  All segments of the LCD must be on for this function to properly find the digits.

Image Types Supported

IMAQ_IMAGE_U8, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL

Parameters

Name

Type

Description

roi ROI* The region of interest to transform. When necessary, the function converts a rectangular contour contained in roi to a rotated rectangle contour.
image const Image* The image containing the LCD. All segments of the LCD must be lit.
options const LCDOptions* Controls how the function performs the search.

Return Value

Type

Description

int On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError().

Parameter Discussion

options—Set options to NULL to use the default options, as follows:

litSegments FALSE
threshold 8
sign FALSE
decimalPoint FALSE