Setting Up Character Size and Spacing Criteria

NI OCR Training Interface

Setting Up Character Size and Spacing Criteria

Use the Size & Spacing tab to indicate the character size and spacing values required for character recognition. OCR does not recognize any characters in the ROI that do not meet the criteria you set here.

Modify the fields on the Size & Spacing tab to set up the character size and spacing requirements.

  • AutoSplit—Allows you to configure OCR to handle slanted characters.
  • Bounding Rect Width—Indicates the width limits, in pixels, for the character bounding rectangle.
  • Bounding Rect Height—Indicates the height limits, in pixels, for the character bounding rectangle.
  • Character Size—Indicates the size (area) requirements, in pixels, for an object in an ROI to be considered a character that can be trained.
  • Min Char Spacing—Indicates the minimum amount of space, in pixels, that can be between characters in the ROI you specified. This value must be greater than Max Element Spacing (x).
  • Max Element Spacing (x)—Indicates the maximum amount of space, in pixels, that can be between horizontally adjacent elements, such as in dot-matrix objects. This value must be less than Min Char Spacing.
  • Max Element Spacing (y)—Indicates the maximum amount of space, in pixels, that can be between vertically adjacent elements.
    Tip  If the objects in the ROI are not segmented as you expect them to be, experiment with settings on the Threshold, Advanced Threshold, and Size & Spacing tabs to improve the segmentation.