The OcrSpellCheckOpinion Enumeration is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Possible return values for a user-defined spell checking callback.Visual Basic (Declaration) | |
---|---|
<SerializableAttribute()> Public Enum OcrSpellCheckOpinion Inherits System.Enum Implements IComparable, IConvertible, IFormattable |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As OcrSpellCheckOpinion |
C# | |
---|---|
[SerializableAttribute()] public enum OcrSpellCheckOpinion : System.Enum, IComparable, IConvertible, IFormattable |
C++/CLI | |
---|---|
[SerializableAttribute()] public enum class OcrSpellCheckOpinion : public System.Enum, IComparable, IConvertible, IFormattable |
Member | Description |
---|---|
Impossible | The recognized value cannot be possible. |
Possible | The recognized value is possibly acceptable. |
Sure | The recognized value is certainly acceptable. |
Unlikely | The recognized value is unlikely to be acceptable. |
Unresolved | Cannot make a decision about the acceptability of the recognized value. |
You can set the OcrSpellCheckCallback to be used globally in the engine through the IOcrSpellCheckManager.SetSpellCheckCallback method.
This callback allows user intervention during the spell checking process. The callback is called by the checking subsystem of the engine during the recognition operation. The user can then influence the decision about the recognized result through the returned OcrSpellCheckOpinion value.
For an example, if the particular zone in the page to be recognized is allowed to contain digits and only certain values are allowed. The user can return the following values:
- If the value contains digits only and falls in the range of the values allowed, the user should return OcrSpellCheckOpinion.Sure.
- If the value fails to to fulfill any of the above two requirements, the user should return OcrSpellCheckOpinion.Impossible.
If the particular zone in the page to be recognized is allowed to have digits only but no further restrictions, the user can return the following values:
- If the value is digits only, the user should return OcrSpellCheckOpinion.Possible.
- If the value contains digits plus punctuation (for example, a comma or a period), the user should return OcrSpellCheckOpinion.Unlikely.
Note: User-defined checking through the OcrSpellCheckCallback callback is not supported when using the LEADTOOLS OCR Advantage Engine.
System.Object
System.ValueType
System.Enum
Leadtools.Forms.Ocr.OcrSpellCheckOpinion
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7