Gets and sets global threshold data.
OCR session on which the node operates.
To create a session, use the Create OCR Session node.
Thresholding method that the node sets when get/set? is True. This value is ignored if get/set? is False.
The following values are valid:
Name | Value | Description |
---|---|---|
Fixed Range | 0 |
Use this mode when you want to specify the low and high threshold values. OCR performs no automatic calculations. This is the fastest thresholding method. |
Uniform | 1 |
Computes a single threshold value for the entire ROI. |
Linear | 2 |
Divides the ROI into the number of blocks specified by number of blocks, calculates a threshold value for each block, and then uses the value to extract pixel data. Use this mode when the light intensity varies uniformly across the ROI. |
Non-linear | 3 |
Calculates a value on the left side of the ROI, a value on the right size of the ROI, and then fills the middle values in a linear fashion from left to right. The size of the steps from which to calculate the left and right values is based on the value of number of blocks. |
Default: Uniform
Parameters that the node sets if get/set? is True. The value of this cluster is ignored if get/set? is False.
Number of blocks that OCR uses when threshold mode is linear or non-linear. Valid values range from 4 to 50.
Upper and lower bounds of the threshold values used to calculate the threshold.
Lower bound of the calculated threshold value.
Upper bound of the calculated threshold value.
Boolean input that indicates if OCR calculates both the low and high threshold values when optimize for speed is set to True. True enables OCR to calculate both the low and high threshold values when optimize for speed is set to TRUE.
If you set this item to TRUE, dark characters is ignored.
Default: False
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.
Lower bound of the threshold range.
Upper bound of the threshold range.
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Default: No error
OCR session on which this node operates.
Current value of the thresholding mode.
Current value of the advanced threshold data.
Number of blocks that OCR uses when threshold mode is linear or non-linear.
Upper and lower bounds of the threshold values used to calculate the threshold.
Lower bound of the calculated threshold value.
Upper bound of the calculated threshold value.
Boolean that indicates if OCR calculates both the low and high threshold values. TRUE enables OCR to calculate both the low and high threshold values when optimize for speed is set to True.
Current value of the fixed threshold range.
Lower bound of the threshold range.
Upper bound of the threshold range.
Error information.
The node produces this output according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported
Web Server: Not supported in VIs that run in a web application