IMAQ OCR Threshold Data 2 VI
- Updated2023-02-21
- 16 minute(s) read
IMAQ OCR Threshold Data
Gets and sets global threshold data.

![]() |
Threshold Data specifies parameters that the VI sets if Get/Set is TRUE. The value of this cluster is ignored if Get/Set is FALSE.
|
||||||||||||||
![]() |
IMAQ OCR Session specifies the OCR session on which this VI operates. To create a session, use the IMAQ OCR Create Session VI. |
||||||||||||||
![]() |
Threshold Mode specifies the thresholding method that the VI sets when Get/Set is TRUE. This value is ignored if Get/Set is FALSE. For more information, see Optical Character Recognition Concepts and Terminology. The following values are valid:
|
||||||||||||||
![]() |
Fixed Threshold Range specifies the fixed threshold range when Threshold Mode is set to Fixed Range and Get/Set is TRUE. Fixed Threshold Range is ignored for all other values of Threshold Mode or if Get/Set is FALSE.
|
||||||||||||||
![]() |
error in (no error) describes the error status before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
||||||||||||||
![]() |
Get/Set (True: Set) specifies whether the VI gets or sets the property value. TRUE sets the property value. FALSE gets the property value. |
||||||||||||||
![]() |
Threshold Data Out is the current value of the advanced threshold data.
|
||||||||||||||
![]() |
IMAQ OCR Session (dup) is the reference to the OCR session to which this VI operates. |
||||||||||||||
![]() |
Threshold Mode Out is the current value of the thresholding mode. |
||||||||||||||
![]() |
Fixed Threshold Range Out is the current value of the fixed threshold range.
|
||||||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
IMAQ OCR Threshold Data - Local
Gets and sets local threshold data.

![]() |
Niblack Deviation Factor (0.2) specifies the k constant used in the Niblack local thresholding algorithm, which determines the weight applied to the variance calculation. Valid k constants range from 0 to 1. The lower the Deviation Factor, the closer the pixel value must be to the mean value to be selected as part of a particle. Setting the Niblack Deviation Factor to 0 will increase the performance of the VI because the VI will not calculate the variance for any of the pixels. |
||||||||||||
![]() |
IMAQ OCR Session specifies the OCR session on which this VI operates. To create a session, use the IMAQ OCR Create Session VI. |
||||||||||||
![]() |
Threshold Mode specifies the thresholding method that the VI sets when Get/Set is TRUE. This value is ignored if Get/Set is FALSE. For more information, see Optical Character Recognition Concepts and Terminology. The following values are valid:
|
||||||||||||
![]() |
Threshold Data specifies parameters that the VI sets if Get/Set is TRUE. The value of this cluster is ignored if Get/Set is FALSE.
|
||||||||||||
![]() |
error in (no error) describes the error status before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
||||||||||||
![]() |
Get/Set (True: Set) specifies whether the VI gets or sets the property value. TRUE sets the property value. FALSE gets the property value. |
||||||||||||
![]() |
Niblack Deviation Factor indicates the k constant used in the Niblack local thresholding algorithm. |
||||||||||||
![]() |
IMAQ OCR Session (dup) is the reference to the OCR session to which this VI operates. |
||||||||||||
![]() |
Threshold Mode Out is the current value of the thresholding mode. |
||||||||||||
![]() |
Threshold Data Out indicates the threshold parameters that the VI set. |
||||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
IMAQ OCR Threshold Data - Color
Gets and sets color threshold data.

![]() |
IMAQ OCR Session specifies the OCR session on which this VI operates. To create a session, use the IMAQ OCR Create Session VI. |
||||||||||||||||||
![]() |
Threshold Mode defines the image color format to use for the operation. For more information, see Optical Character Recognition Concepts and Terminology. Choose from the following values:
|
||||||||||||||||||
![]() |
Threshold Data is a cluster used to determine the thresholding range for the mode chosen in Threshold Mode.
|
||||||||||||||||||
![]() |
error in (no error) describes the error status before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
||||||||||||||||||
![]() |
Get/Set (True: Set) specifies whether the VI gets or sets the property value. TRUE sets the property value. FALSE gets the property value. |
||||||||||||||||||
![]() |
IMAQ OCR Session (dup) is the reference to the OCR session to which this VI operates. |
||||||||||||||||||
![]() |
Threshold Mode Out is the current value of the thresholding mode. |
||||||||||||||||||
![]() |
Threshold Data Out indicates the threshold parameters that the VI set. |
||||||||||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|




















