Notice: This documentation is archived. For the latest product features and documentation, please visit Dynamsoft Capture Vision Documentation.
ConfusableCharactersCorrection
The parameter ConfusableCharactersCorrection
defines the confusing character set and an array of reference font names for error correction.
The currently supported built-in fonts are as follows:
- ARIAL
- COURIER_NEW
- OCR_B
- TIMES_NEW_ROMAN
- VERDANA
- HELVETICA
The currently supported built-in confusable characters sets are as follows:
- [“0”, “o”, “O”]
- [“l”, “1”, “I”]
- [“5”, “s”, “S”]
Example
{
"ConfusableCharactersCorrection":
{
"ConfusableCharacters": [
["0", "o", "O"],
["l", "1", "I"],
["5", "s", "S"]
],
"FontNameArray": [
"ARIAL"
]
}
}
Parameter Summary
ConfusableCharacters
Parameter ConfusableCharacters
defines an array of confusing characters sets for correction.
ConfusableCharacters Parameter Summary |
---|
Type String[][] |
Range Each row of the array should be a supported confusing characters set. The currently supported built-in confusable characters sets are as follows: [“0”, “o”, “O”] [“l”, “1”, “I”] [“5”, “s”, “S”] |
Default Value [ [“0”, “o”, “O”], [“l”, “1”, “I”], [“5”, “s”, “S”] ] |
FontNameArray
Parameter FontNameArray
is an array of supported font names.
FontNameArray Parameter Summary |
---|
Type String[] |
Range Each member should be a supported font name. The currently supported built-in fonts are as follows: ARIAL COURIER_NEW OCR_B TIMES_NEW_ROMAN VERDANA HELVETICA |
Default Value null |
Remarks null indicates that the confusable characters telling is not enabled. |