Run the classifier on the input character(s).
Namespace: Cognex.VisionPro.OCRMax.Implementation.InternalAssembly: Cognex.VisionPro.OCRMax (in Cognex.VisionPro.OCRMax.dll) Version: 75.1.0.0
Syntax
Parameters
- runCharacter
- Type: Cognex.VisionPro.OCRMax CogOCRMaxChar
- swapCharacterSet
- Type: Cognex.VisionPro.OCRMax CogOCRMaxSwapCharSet
- runParams
- Type: Cognex.VisionPro.OCRMax CogOCRMaxClassifierRunParams
Return Value
Type: CogOCRMaxClassifierPositionResultExceptions
| Exception | Condition |
|---|---|
| CogOCRMaxClassifierParamsException |
Thrown if:
|
| CogOCRMaxClassifierNotTrainedException | Thrown if if IsTrained()==false. |
| ObjectDisposedException | Thrown if the object is disposed. |
| ArgumentNullException | Thrown if runCharacter is null. Thrown if swapCharacterSet is null. Thrown if runParams is null. |
Remarks
If the input character is to be classified as a space, set isSpace to true and provide a spaceScore within [0, 1].
The classifier ignores spaceScore if isSpace is false.
The classifier throws an exception if the value of isSpace is different from runCharacter.key().isSpace(), or is different from runCharacter.metrics().isBlank().
The overloads that do not take the isSpace parameter are used only for classifying nonspace characters. For each input character, both runCharacter.metrics().isBlank() and runCharacter.key().isSpace() must return false.
See Also