GdPicture.NET.14
GdPicture14 Namespace / GdPictureOCR Class / CharacterBlackList Property
Example





In This Topic
CharacterBlackList Property (GdPictureOCR)
In This Topic
Defines the restricted recognition characters, so called characters blacklist, that are not allowed to recognize during subsequent OCR processes. The recognition is disabled for the provided characters, that means the engine doesn't consider the specified characters when processing.

For example, if you want to disable/not recognize the characters "0X@", set this parameter to "0X@".

Syntax
'Declaration
 
Public Property CharacterBlackList As String
public string CharacterBlackList {get; set;}
public read-write property CharacterBlackList: String; 
public function get,set CharacterBlackList : String
public: __property string* get_CharacterBlackList();
public: __property void set_CharacterBlackList( 
   string* value
);
public:
property String^ CharacterBlackList {
   String^ get();
   void set (    String^ value);
}

Property Value

The default value is an empty string, means no limit is used.
Example
How to specify the required black list of characters.
Using gdpictureOCR As GdPictureOCR = New GdPictureOCR()
 
    gdpictureOCR.CharacterBlackList = "1234"
 
    'You can do your another stuff with gdpictureOCR here.
End Using
using (GdPictureOCR gdpictureOCR = new GdPictureOCR())
{
    gdpictureOCR.CharacterBlackList = "1234";
 
    //You can do your another stuff with gdpictureOCR here.
}
See Also