←Select platform

PerspectiveDeskewCommand Class

Summary
Detects and automatically deskews a document in three dimensions. Usually used to correct perspective distortion (deskew) introduced by the camera’s perspective in relation to the subject (usually a document).
Syntax
C#
Objective-C
C++/CLI
Java
Python
public class PerspectiveDeskewCommand : RasterCommand 
@interface LTPerspectiveDeskewCommand : LTRasterCommand 
public class PerspectiveDeskewCommand 
    extends RasterCommand 
public ref class PerspectiveDeskewCommand : public RasterCommand   
class PerspectiveDeskewCommand(RasterCommand): 
Remarks
  • For the best detection results, the document's boundaries should be inside the captured view and have a different background color than the background of the captured view.
  • The PerspectiveDeskewCommand can change the specified image. To keep the original image unchanged, use this function on a copy.
  • Use the PerspectiveDeskewCommand if there is depth (z-axis) deformation as well as deformation along the x- and y- axes. Use the DeskewCommand to fix 2D orientation. Unlike the DeskewCommand, the PerspectiveDeskewCommand does not look at the content of the captured document.

  • If the PerspectiveDeskewCommand fails to correct the skew, the original image is not changed.

  • This function supports 24 and 32-bit color images.
  • This command supports signed/unsigned images.

Perspective Deskew Function - Before

Perspective Deskew Function - Before

Perspective Deskew Function - After

Perspective Deskew Function - After

View additional platform support for this Perspective Deskew function.

Requirements

Target Platforms

Help Version 22.0.2023.11.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Core Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.