ThresholdMode
The method by which to calculate the threshold that imaqTrainChars and imaqReadText use to analyze an image.
Refer to the NI OCR Training Interface Help for more information.
Elements
Name | Value | Description |
---|---|---|
IMAQ_FIXED_RANGE | 0 |
Performs thresholding using the values you provide in the lowThreshold and highThreshold elements of OCRProcessingOptions. This mode provides the fastest thresholding. |
IMAQ_COMPUTED_UNIFORM | 1 |
Calculates a single threshold value for the entire ROI. |
IMAQ_COMPUTED_LINEAR | 2 |
Calculates a value on the left side of the ROI, calculates a value on the right side of the ROI, and linearly fills the middle values from left to right. Use the blockCount element of OCRProcessingOptions to control the step size. Use this mode when the light intensity varies uniformly across the ROI. |
IMAQ_COMPUTED_NONLINEAR | 3 |
Divides the ROI into the number of blocks specified by the blockCount element of OCRProcessingOptions and calculates a threshold value for each block. |