CogOCVCharacterPosition GetFontModelInstance Method Cognex VisionPro
The Instance of the font model candidate specified via Index. OCV verifies the highest scoring candidate. Models are specified using both FontModelName & FontModelInstance. Index must be greater than or equal to zero and less than FontModelCount.

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

public int GetFontModelInstance(
	int index
)

Parameters

index
Type: System Int32

The zero-based index of the font model candidate whose instance is returned.

Return Value

Type: Int32
Events

Event TypeReason
CogOCVCharacterPosition Changed

Fires when this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

index is < 0 or >= FontModelCount.

ArgumentException

The instance number is < 0 or > 255.

Remarks

Returns the Instance of the specified font model candidate. index must be greater than or equal to zero and less than FontModelCount.

See Also