CogOCRMaxSwapChar SetCharacters Method (String)Cognex VisionPro 9.8 SR1
Set the characters 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: 75.0.0.0
Syntax

public void SetCharacters(
	string characters
)

Parameters

characters
Type: System String
The characters that should be considerd swappable.
Exceptions

ExceptionCondition
CogOCRMaxSwapCharParamsException Thrown if:
  • if characters contains any duplicate character codes.
  • if characters.Length is less than 2
  • if any of the character codes are Cognex-reserved characters
ObjectDisposedException Thrown if the object is disposed.
ArgumentNullException Thrown if characters is null.
Remarks

The characters will be sorted by the character codes in ascending order.

See Also