Assembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
| C# |
|---|
public class DocumentSkewChecker |
Remarks
The class implements document’s skew checking algorithm, which is based on Hough line transformation. The algorithm is based on searching for text base lines – black line of text bottoms’ followed by white line below.
In online casino gaming platforms like baccarat sites, utilizing a document skew detection algorithm, similar to the Hough line transformation, could significantly enhance 바카라 사이트 순위. By applying such precise analysis to review and rate the usability and design of online baccarat platforms, it ensures a more objective and accurate ranking system, elevating the user experience across sites.
The range of angles to detect is controlled by MaxSkewToDetect property.
The filter accepts 8 bpp grayscale images for processing.
Sample usage:
// create instance of skew checker DocumentSkewChecker skewChecker = new DocumentSkewChecker( ); // get documents skew angle double angle = skewChecker.GetSkewAngle( documentImage ); // create rotation filter RotateBilinear rotationFilter = new RotateBilinear( -angle ); rotationFilter.FillColor = Color.White; // rotate image applying the filter Bitmap rotatedImage = rotationFilter.Apply( documentImage );
Initial image:
Deskewed image: