OCRSpacingOptions

NI Vision for LabWindows/CVI Function

OCRSpacingOptions

Character size and spacing constraints you want to use during the training or reading process.

Refer to the NI OCR Training Interface Help for more information.

Elements

Name

Type

Description

minCharSpacing int The minimum number of pixels that must be between two characters for NI Vision to train or read the characters separately. This value cannot be less than maxHorizontalElementSpacing.
minCharSize int The minimum number of pixels required for an object to be a potentially identifiable character. The minimum acceptable value for this element is 1.
maxCharSize int The maximum number of pixels required for an object to be a potentially identifiable character. Set this element to 65536 to indicate that all character sizes greater than minCharSize are acceptable.
maxHorizontalElementSpacing int The maximum horizontal spacing, in pixels, allowed between character elements to train or read the character elements as a single character. This value cannot exceed minCharSpacing. The minimum acceptable value for this element is 0.
maxVerticalElementSpacing int The maximum vertical element spacing in pixels. Elements whose spacing from the main character element exceeds maxVerticalElementSpacing are not used for training or reading. Set this element to 0 to specify that any element in the ROI should be considered part of a character.
minBoundingRectWidth int The minimum possible width, in pixels, for a character bounding rectangle. The minimum acceptable value for this element is 1.
maxBoundingRectWidth int The maximum possible width, in pixels, for a character bounding rectangle. Set this property to 65,536 to specify that all widths greater than minBoundingRectWidth are acceptable.
minBoundingRectHeight int The minimum possible height, in pixels, for a character bounding rectangle. The minimum acceptable value for this element is 1.
maxBoundingRectHeight int The maximum possible height, in pixels, for a character bounding rectangle. Set this property to 65,536 to specify that all heights greater than minBoundingRectHeight are acceptable.
autoSplit int Set this element to TRUE to automatically adjust the location of the character bounding rectangle when characters overlap vertically. This element is useful when you are working with an image that contains slanted characters. If the characters are not slanted and/or do not overlap vertically, set this element to FALSE.