Table of contents

DSEnhancedImagesUnit

The DSEnhancedImagesUnit class represents an intermediate result unit whose type is enhanced images.

Definition

Assembly: DynamsoftCaptureVisionBundle.xcframework

  • Objective-C
  • Swift
  1. @interface DSEnhancedImagesUnit: DSIntermediateResultUnit
    
  2. class EnhancedImagesUnit: IntermediateResultUnit
    

Methods

Methods Description
getEnhancedImage Gets the enhanced image of type DSEnhancedImageElement.
setEnhancedImage Set the DSEnhancedImageElement at the specified index.

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.

getEnhancedImage

Gets the DSEnhancedImageElement.

  • Objective-C
  • Swift
  1. -(DSEnhancedImageElement *)getEnhancedImage;
    
  2. func getEnhancedImage() -> EnhancedImageElement
    

Return Value

The enhanced image of type DSEnhancedImageElement.

setEnhancedImage

Set the DSEnhancedImageElement at the specified index.

  • Objective-C
  • Swift
  1. -(NSInteger)setEnhancedImage:(DSEnhancedImageElement*)element;
    
  2. func setEnhancedImage(element: EnhancedImageElement) -> Int
    

Parameters

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

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

This page is compatible for: