CogOCRMaxClassifier Font Property Cognex VisionPro 9.8 SR1
Contains the CogOCRMaxChars (images of individual characters) used to train the classifier.

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

public CogOCRMaxFont Font { get; set; }

Property Value

Type: CogOCRMaxFont
The Font value. The default value is a default constructed CogOCRMaxFont instance.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfFont
Exceptions

ExceptionCondition
ArgumentNullException Thrown if Font is set to null.
Remarks

The OCRMax Classifier trains and runs on CogOCRMaxChar objects. The train time CogOCRMaxChars are stored within the Classifier.Font collection.

Fonts are usually created by using the segmenter to extract CogOCRMaxChars from an image and then manually 'filling in' the proper Key.CharacterCode for each character before adding them to the fonts characters collection.

See Also