Accusoft ImagXpress 13
DocumentDeskew Method

A double value which represents the amount of skew (in degrees) considered acceptable by the caller. This allows the caller 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.

Range: 0 - 5

Typical: 0.2

 

An integer value which represents the minimum detection confidence required before correction will proceed. If the detection confidence is less than this value, the image will not be modified.

Range: 0 - 100

Typical: 50

 

A long value which indicates the pad color.

Valid values:

0 = black pixels will be added to pad the image.

0x7FFFFFFF = white pixels will be added to pad the image.

Typical: white.

 

A boolean flag indicates whether the size of the image should be maintained unchanged, or allowed to change. Typically, this will be False and the deskewed image will be slightly larger than the original image.

Range: True or False

Typical: False

 

An integer value 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.

Range: 1 - 100

Typical: 80

Description
Automatically detects and removes skew from current 1-bit depth images.
Syntax
Visual Basic
Public Sub DocumentDeskew( _
   ByVal MinimumAngle As Double, _
   ByVal MinimumConfidence As Integer, _
   ByVal PadColor As Long, _
   ByVal MaintainOriginalSize As Boolean, _
   ByVal Quality As Integer _
) 
Parameters
MinimumAngle

A double value which represents the amount of skew (in degrees) considered acceptable by the caller. This allows the caller 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.

Range: 0 - 5

Typical: 0.2

 

MinimumConfidence

An integer value which represents the minimum detection confidence required before correction will proceed. If the detection confidence is less than this value, the image will not be modified.

Range: 0 - 100

Typical: 50

 

PadColor

A long value which indicates the pad color.

Valid values:

0 = black pixels will be added to pad the image.

0x7FFFFFFF = white pixels will be added to pad the image.

Typical: white.

 

MaintainOriginalSize

A boolean flag indicates whether the size of the image should be maintained unchanged, or allowed to change. Typically, this will be False and the deskewed image will be slightly larger than the original image.

Range: True or False

Typical: False

 

Quality

An integer value 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.

Range: 1 - 100

Typical: 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.

 

Outputs

 

Using DocumentDeskew method

1. Load a 1 bit image from a file or stream input.

2. Call DocumentDeskew

3. Examine properties (The image is deskewed according to parameters specification and limitations.)

 

Note: Available in Professional Edition.

See Also

ImagXpress Object  | ImagXpress Members  | IPRotationalAngle Property  | IPVariation Property  | IPConfidence Property  | IPImageWasModified Property  | Document Image Processing  | Image Processing

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback