CogOCRMaxSwapChar SetCharacters Method ( Int32 )Cognex VisionPro 9.5
Set the characters (UTF-32) that are defined as "swappable" (They appear similar and are hard to distinguish, e.g. '0' (zero) and 'O' (capital oh)).

Namespace: Cognex.VisionPro.OCRMax
Assembly: Cognex.VisionPro.OCRMax (in Cognex.VisionPro.OCRMax.dll) Version: 69.0.0.0
Syntax

public void SetCharacters(
	params int[] characterCodes
)

Parameters

characterCodes
Type:  System Int32 
The character codes that should be considerd swappable.
Exceptions

ExceptionCondition
CogOCRMaxSwapCharParamsException Thrown if:
  • if characterCodes contains any duplicate character codes.
  • if characterCodes.Count is less than 2
  • if any of the character codes are Cognex-reserved character codes
ObjectDisposedException Thrown if the object is disposed.
ArgumentNullException Thrown if characterCodes is null.
See Also