Table of contents

DSDeskewedImagesUnit

The DSDeskewedImagesUnit class represents an intermediate result unit whose type is deskewed images.

Definition

Assembly: DynamsoftCaptureVisionBundle.xcframework

  • Objective-C
  • Swift
  1. @interface DSDeskewedImagesUnit: DSIntermediateResultUnit
    
  2. class DeskewedImagesUnit: IntermediateResultUnit
    

Methods

Methods Description
getDeskewedImage Gets the deskewed image of type DSDeskewedImageElement.
setDeskewedImage Sets the deskewed image with a DSDeskewedImageElement object

The following methods are inherited from class DSIntermediateResultUnit.

Method Description
getHashId Returns the hash ID of the unit.
getOriginalImageHashId Returns the hash ID of the original image.
getOriginalImageTag Returns the image tag of the original image.
getType Returns the type of the intermediate result unit.
getTransformMatrix Returns the transformation matrix via DSTransformMatrixType.
clone Creates a copy of the intermediate result unit.
replace Replaces the content of the intermediate result unit.

getDeskewedImage

Gets the deskewed image of type DSDeskewedImageElement.

  • Objective-C
  • Swift
  1. -(DSDeskewedImageElement *)getDeskewedImage;
    
  2. func getDeskewedImage() -> DeskewedImageElement
    

Return Value

The deskewed image of type DSDeskewedImageElement.

setDeskewedImage

Set the deskewed image with a DSDeskewedImageElement object.

  • Objective-C
  • Swift
  1. -(NSInteger)setDeskewedImage:(DSDeskewedImageElement*)element
       matrixToOriginalImage:(CGAffineTransform)matrixToOriginalImage;
    
  2. func setDeskewedImage(element: DeskewedImageElement, matrixToOriginalImage: CGAffineTransform) -> Int
    

Parameters

[in] element: The deskewed image to be set.

[in] matrixToOriginalImage: The matrix to the original image.

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

This page is compatible for: