CogOCRMaxTool Region Property Cognex VisionPro 9.5
Gets or sets the optional region which determines where the tool should look for text.

Namespace: Cognex.VisionPro.OCRMax
Assembly: Cognex.VisionPro.OCRMax (in Cognex.VisionPro.OCRMax.dll) Version: 69.0.0.0
Syntax

public CogRectangleAffine Region { get; set; }

Property Value

Type: CogRectangleAffine
The Region value. The default value is a default constructed CogRectangleAffine instance.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfRegion
  • SfCreateCurrentRecord
Remarks

The region should contain one line of characters and surrounding featureless, but possibly nonuniform and/or noisy, background; there should be no strong features in the region other than the one line of characters.

The x-axis should be approximately parallel to the baseline of the contained line of characters, with its positive direction pointing along the reading direction. The skew should be the approximate value of the skew of the line of characters.

If the region is null the whole image will serve as the region.

See Also