Example





In This Topic
GdPicture14 Namespace / GdPictureOCR Class / EnableOrientationDetection Property

EnableOrientationDetection Property (GdPictureOCR)

In This Topic
Specifies, whether the engine will try to detect the page orientation, means the page standard rotation, automatically during subsequent OCR processes. Enabling this options may noticeably slow down the engine's performance.
Syntax
'Declaration
 
Public Property EnableOrientationDetection As Boolean
public bool EnableOrientationDetection {get; set;}
public read-write property EnableOrientationDetection: Boolean; 
public function get,set EnableOrientationDetection : boolean
public: __property bool get_EnableOrientationDetection();
public: __property void set_EnableOrientationDetection( 
   bool value
);
public:
property bool EnableOrientationDetection {
   bool get();
   void set (    bool value);
}

Property Value

The default value is false, that means the automatic detection of a page orientation is not activated.
Remarks
Please be aware that enabling the automatic page orientation detection may noticeably slow down the engine's performance.
Example
How to enable the automatic page orientation detection.
Using gdpictureOCR As GdPictureOCR = New GdPictureOCR()
 
    gdpictureOCR.EnableOrientationDetection = True
 
    'You can do your another stuff with gdpictureOCR here.
End Using
using (GdPictureOCR gdpictureOCR = new GdPictureOCR())
{
    gdpictureOCR.EnableOrientationDetection = true;
 
    //You can do your another stuff with gdpictureOCR here.
}
See Also