Returns the indices of all training instances in TrainCharacterKeys()
that match the specified character key.
Namespace: Cognex.VisionPro.OCRMax.Implementation.InternalAssembly: Cognex.VisionPro.OCRMax (in Cognex.VisionPro.OCRMax.dll) Version: 75.1.0.0
Syntax
Parameters
- key
- Type: Cognex.VisionPro.OCRMax CogOCRMaxCharKey
The CogOCRMaxCharKey for which to retrieve the Indices.
Return Value
Type: Int32Exceptions
| Exception | Condition |
|---|---|
| CogOCRMaxClassifierNotStartTrainedException | Thrown if IsStartTrained() == false. |
| CogOCRMaxClassifierParamsException | Thrown if key.CharacterCode == Unknown. |
| ObjectDisposedException | Thrown if the object is disposed. |
| ArgumentNullException | Thrown if key is null. |
Remarks
This function will attempt to match all specified fields of CogOCRMaxCharKey. If any of key.Instance, key.Variant, and key.FontID is Unspecified, it will be treated as don't-care, and this function will ignore that field.
Returns an empty vector if the specified key is not found.
See Also