|
DocumentSkewCheckerGetSkewAngle Method (UnmanagedImage, Rectangle)
|
Get skew angle of the provided document image.
Namespace:
Accord.Imaging
Assembly:
Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax public double GetSkewAngle(
UnmanagedImage image,
Rectangle rect
)
Public Function GetSkewAngle (
image As UnmanagedImage,
rect As Rectangle
) As Double
Request Example
View SourceParameters
- image
- Type: Accord.ImagingUnmanagedImage
Document's unmanaged image to get skew angle of. - rect
- Type: System.DrawingRectangle
Image's rectangle to process (used to exclude processing of
regions, which are not relevant to skew detection).
Return Value
Type:
DoubleReturns document's skew angle. If the returned angle equals to -90,
then document skew detection has failed.
Exceptions See Also