ImageGear .NET v25.1 - Updated
DetectSkew Method




ImageGear.OCR Assembly > ImageGear.OCR Namespace > ImGearOCRImage Class : DetectSkew Method
Variable to receive detected skew of the image.
Variable to receive detected orientation of the image.
Detects the skew amount of the image.
Syntax
'Declaration
 
Public MustOverride Sub DetectSkew( _
   ByRef slope As Integer, _
   ByRef orientation As ImGearOCROrientationMode _
) 
'Usage
 
Dim instance As ImGearOCRImage
Dim slope As Integer
Dim orientation As ImGearOCROrientationMode
 
instance.DetectSkew(slope, orientation)
public abstract void DetectSkew( 
   out int slope,
   out ImGearOCROrientationMode orientation
)
public: abstract void DetectSkew( 
   [PARAMFLAG::Out] int slope,
   [PARAMFLAG::Out] ImGearOCROrientationMode orientation
) 
public:
abstract void DetectSkew( 
   [Out] int slope,
   [Out] ImGearOCROrientationMode orientation
) 

Parameters

slope
Variable to receive detected skew of the image.
orientation
Variable to receive detected orientation of the image.
Remarks
This method detects the orientation and the skew of the image.

Depending on the current setting of the Image deskewing and Image rotation modes, this method returns either with the detected image skew / orientation or with the current values of these settings.

When the image is not bitonal, in some rare cases Preprocess method can deskew the image more accurately than DetectSkew / Deskew methods. This is because DetectSkew uses a simpler and faster binarization algorithm than the Preprocess. The latter can realize that the calculated slope value is unreliable and then binarize the image again with a more precise method and repeat the skew detection.

See Also

Reference

ImGearOCRImage Class
ImGearOCRImage Members
ImGearOCROrientationMode Enumeration