Table Of Contents

Get Set OCR Threshold Data (Get Set OCR Threshold Data - Local) (G Dataflow)

Last Modified: June 25, 2019

Gets and sets local threshold data.

connector_pane_image
datatype_icon

OCR session in

OCR session on which the node operates.

To create a session, use the Create OCR Session node.

datatype_icon

threshold mode in

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 Description
Background Correction Performs background correction to eliminate non-uniform lighting effects and then performs thresholding using the interclass variance thresholding algorithm.
datatype_icon

threshold options in

Parameters that the node sets if get/set? is True. The value of this cluster is ignored if get/set? is False.

datatype_icon

object type

Type of objects to look for.

The following values are valid:

Name Value Description
Bright Objects 0

Looks for objects in the image represented by pixels with values greater than the value computed by the threshold method.

Dark Objects 1

Looks for objects in the image represented by pixels with values less than the value computed by the threshold method.

datatype_icon

window size

Cluster specifying the size of the window the node uses when calculating a local threshold.

The window should be sized as large as possible, but small enough that each window contains pixels with consistent levels of contrast. The node will produce inconsistent results for windows that contain uniform pixel values. A typical window should be about the size of the object you want to segment in the image.

datatype_icon

sizeX

Size of the window in the x dimension.

The size must be at least 3 and cannot be larger than the width of image in.

datatype_icon

sizeY

Size of the window in the y dimension.

The size must be at least 3 and cannot be larger than the height of image in.

datatype_icon

Niblack deviation factor in

Input that 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 selected as part of a particle. Setting the Niblack deviation factor in to 0 increases the performance of the node, as the pixel variance is not calculated.

datatype_icon

error in

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.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

get/set?

Boolean that specifies whether the node gets or sets the property value.

True Sets the property value.
False Gets the property value.
datatype_icon

OCR session out

OCR session on which this node operates.

datatype_icon

threshold mode out

Current value of the thresholding mode.

datatype_icon

threshold options out

Threshold parameters that the node set.

datatype_icon

Niblack deviation factor out

k constant used in the Niblack local thresholding algorithm.

datatype_icon

error out

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.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics