CogOCRMaxClassifierTrainParams TemplateHeight Property Cognex VisionPro 9.5
The height to which the rectified images are resampled for classification.

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

public int TemplateHeight { get; set; }

Property Value

Type: Int32
The TemplateHeight value. The default value is 18.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfTemplateHeight
Exceptions

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

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

See Also