GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureOCR Class / OCRMode Property
Example





In This Topic
OCRMode Property (GdPictureOCR)
In This Topic
Defines the OCR mode to be used during subsequent OCR processes. You can choose between speed or accuracy.
Syntax
'Declaration
 
Public Property OCRMode As OCRMode
public OCRMode OCRMode {get; set;}
public read-write property OCRMode: OCRMode; 
public function get,set OCRMode : OCRMode
public: __property OCRMode get_OCRMode();
public: __property void set_OCRMode( 
   OCRMode value
);
public:
property OCRMode OCRMode {
   OCRMode get();
   void set (    OCRMode value);
}

Property Value

The default value is OCRMode.FavorAccuracy.
Remarks
It is recommended to set this parameter to OCRMode.FavorAccuracy for low quality images.
Example
How to set the required OCR mode.
Using gdpictureOCR As GdPictureOCR = New GdPictureOCR()
 
    gdpictureOCR.OCRMode = OCRMode.FavorAccuracy
 
    'You can do your another stuff with gdpictureOCR here.
End Using
using (GdPictureOCR gdpictureOCR = new GdPictureOCR())
{
    gdpictureOCR.OCRMode = OCRMode.FavorAccuracy;
 
    //You can do your another stuff with gdpictureOCR here.
}
See Also