CogOCRMaxClassifierImpl GetTrainCharacterIndices Method Cognex VisionPro
Returns the indices of all training instances in TrainCharacterKeys() that match the specified character key.

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

public int[] GetTrainCharacterIndices(
	CogOCRMaxCharKey key
)

Parameters

key
Type: Cognex.VisionPro.OCRMax CogOCRMaxCharKey
The CogOCRMaxCharKey for which to retrieve the Indices.

Return Value

Type:  Int32 
Exceptions

ExceptionCondition
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