Accusoft.ImagXpress12.Net
DocumentDeskew Method
See Also  Send Feedback
Accusoft.ImagXpressSdk Namespace > Processor Class : DocumentDeskew Method




MinimumAngle
A double value which represents the minimum angle, in degrees, to deskew. This allows you to keep images with small amounts of skew untouched, potentially increasing performance in batch operations where some skew is acceptable. Angles less than or equal to this amount will not be corrected. This value should be floating point number from 0 to 5. A typical value is 0.2.
MinimumConfidence
An integer value which represents the minimum detection confidence required before correction will proceed. This value should be an integer from 0 to 100. A typical value is 50.
PadColor
A System.Drawing.Color value for the padding. Valid values are only Color.Black and Color.White. A typical value is Color.White.
MaintainOriginalSize
A boolean value which is true to maintain the original size. Otherwise, false should be used. A typical value is false.
Quality
An integer value which indicates the amount of effort to expend analyzing the image to determine the correct skew. Set to a high value to ensure the most accurate possible result and to a low value for fastest operation. This value should be an integer from 1 to 100. A typical value is 80.

Glossary Item Box

Automatically detects and removes skew from current 1-bit depth images.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

MinimumAngle
A double value which represents the minimum angle, in degrees, to deskew. This allows you to keep images with small amounts of skew untouched, potentially increasing performance in batch operations where some skew is acceptable. Angles less than or equal to this amount will not be corrected. This value should be floating point number from 0 to 5. A typical value is 0.2.
MinimumConfidence
An integer value which represents the minimum detection confidence required before correction will proceed. This value should be an integer from 0 to 100. A typical value is 50.
PadColor
A System.Drawing.Color value for the padding. Valid values are only Color.Black and Color.White. A typical value is Color.White.
MaintainOriginalSize
A boolean value which is true to maintain the original size. Otherwise, false should be used. A typical value is false.
Quality
An integer value which indicates the amount of effort to expend analyzing the image to determine the correct skew. Set to a high value to ensure the most accurate possible result and to a low value for fastest operation. This value should be an integer from 1 to 100. A typical value is 80.

Remarks

Deskew is the process of straightening an image by examining it and determining the appropriate amount of rotation needed for correct alignment.

The detection process focuses on the content of the image, such as text and drawings, rather than the border. Deskew adjusts along the vertical and horizontal axes, optimizing each to provide the best image.

If no image is present, an error is indicated. ImagXpress validates the input, detects the skew, corrects the skew (if necessary) and returns results from the process.

This method is only corrected if the detection confidence is greater than or equal to the MinimumConfidence input and the skew angle is greater than the MinimumAngle input.

If the skew is corrected and MaintainOriginalSize is False, then the previous current image is released and a new DIB is created to hold the new current image. No error is returned if the previous current image could not be released. If the operation fails, the current image is unchanged.

Note: Available in Professional edition.

See Also

©2013. Accusoft Corporation. All Rights Reserved.