←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#
VB
Objective-C
C++
Java
public class PerspectiveDeskewCommand : RasterCommand 
Public Class PerspectiveDeskewCommand  
   Inherits RasterCommand 
@interface LTPerspectiveDeskewCommand : LTRasterCommand 
public class PerspectiveDeskewCommand extends RasterCommand 
public ref class PerspectiveDeskewCommand : public 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.

Requirements

Target Platforms

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

Leadtools.ImageProcessing.Core Assembly