A flag to indicate 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.
The default value is false.
Instantiates a new DeskewOptions class with the specified values for the options.
Syntax
Parameters
- minimumCorrectableAngle
- The minimum amount of skew (in degrees) that is considered correctable.
Angles less than or equal to this amount will not be corrected.
This value must be between 0 and 2. The default value is 0.2.
- minimumConfidence
- The minimum detection confidence required before correction will proceed.
If the detection confidence is less than this value, the image will not be modified.
This value must be an integer between 0 and 100. The default value is 50.
- padColor
- The color to use for pixels that are added to the image.
Often, an image will be increased in size during skew correction to
avoid discarding parts of the corners of the original image.
Any color is acceptable, but the actual color used will be the
nearest color that can be represented in the current image.
The default value is white.
- maintainOriginalSize
- A flag to indicate 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.
The default value is false.
- quality
- A value that indicates the amount of effort to expend analyzing the image
to determine skew.
See Also