CogOCRMaxTuneData GetTunedFont Method (CogOCRMaxFont, CogOCRMaxTuneParams)Cognex VisionPro
Returns the tuned OCRMax Font. The tuned font is merged with the existing font.

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

public CogOCRMaxFont GetTunedFont(
	CogOCRMaxFont existingFont,
	CogOCRMaxTuneParams tuneParams
)

Return Value

Type: CogOCRMaxFont
Exceptions

ExceptionCondition
InvalidOperationException
  • Thrown if Tuned is false.
  • Thrown if the tool is unable to extract a valid font because a character in the tune records is mislabled.
Remarks

Note that characters in the existing font which were added via the tuning mechanism may not be included in the returned font if tuning determines that they are no longer required.

Tuning uses CogOCRMaxChar FontID field to track which characters were added via the tuning mechainsm.

See Also