CogOCRMaxSwapCharSet SetSwapCharacters Method (String, String)Cognex VisionPro
Set the swap characters in this set. Each swap character in this set contains list of characters which are "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: 65.1.0.0
Syntax

public void SetSwapCharacters(
	string swapCharacters,
	string delimiter
)

Parameters

swapCharacters
Type: System String
A string which represents individual CogOCRMaxSwapChars seperated by a delimeter.
delimiter
Type: System String
A String which denotes the separation between swap characters. For example, calling SetSwapCharacters("0D|EF", "|") would result in the set containing two swap characters, "0D" and "EF".
Exceptions

ExceptionCondition
CogOCRMaxSwapCharParamsException Thrown if if Degen() is true for any element of swapCharacters.
ObjectDisposedException Thrown if the object is disposed.
ArgumentNullException Thrown if swapCharacters is null. Thrown if delimiter is null.
Remarks

The delimiter argument is a String which denotes separation between the swap characters in this set. For example, calling SetSwapCharacters("0D|EF", "|") would result in the set containing two swap characters, "0D" and "EF".

By transitivity, all groups that share a same member character with one another will be merged into a single group.

The setter will sort the character codes within each group in ascending order.

See Also