Returns the tuned OCRMax Font.
The tuned font is merged with the existing font.
Namespace: Cognex.VisionPro.OCRMaxAssembly: Cognex.VisionPro.OCRMax (in Cognex.VisionPro.OCRMax.dll) Version: 69.0.0.0
public CogOCRMaxFont GetTunedFont(
CogOCRMaxFont existingFont,
CogOCRMaxTuneParams tuneParams
)
public CogOCRMaxFont GetTunedFont(
CogOCRMaxFont existingFont,
CogOCRMaxTuneParams tuneParams
)
Public Function GetTunedFont (
existingFont As CogOCRMaxFont,
tuneParams As CogOCRMaxTuneParams
) As CogOCRMaxFont
Public Function GetTunedFont (
existingFont As CogOCRMaxFont,
tuneParams As CogOCRMaxTuneParams
) As CogOCRMaxFont
public:
CogOCRMaxFont^ GetTunedFont(
CogOCRMaxFont^ existingFont,
CogOCRMaxTuneParams^ tuneParams
)
public:
CogOCRMaxFont^ GetTunedFont(
CogOCRMaxFont^ existingFont,
CogOCRMaxTuneParams^ tuneParams
)
Return Value
Type:
CogOCRMaxFont| Exception | Condition |
|---|
| 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.
|
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.