Documentation
Table of contents

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.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version (2.2.20)
    • Version 2.x
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.30
      • Version 2.0.20
      • Version 2.0.10
      • Version 2.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support