SkewDetection estimates the orientation angle (in degrees) of the lines of text.

Apply this method only to images that contains printed text.

SkewDetection can be very slow on large images, so applications can resample analyzed image using ResampleWidth parameter to enhance performance.

No resample is performed when ResampleWidth is zero.

The angle range is 30 for default (from -15 to 15 degrees) and the precision will be 0.1.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public double SkewDetection()
Public Function SkewDetection As Double
public:
double SkewDetection()

Return Value

The found angle of the text

Examples

CopyC#
double angle = Image.SkewDetection();
Image.Rotate( angle, true );

See Also