CogOCRMaxClassifierTrainParams TemplateWidth Property Cognex VisionPro 9.8
The width to which the rectified images are resampled for classification.

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

public int TemplateWidth { get; set; }

Property Value

Type: Int32
The TemplateWidth value. The default value is 10.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfTemplateWidth
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown if set to a value less than 1 or greater than 32768
Remarks

Setting the width may cause the height to be adjusted such that the total template area (height x width) is less than or equal to 32768.

See Also