DSEnhancedImagesUnit
The DSEnhancedImagesUnit class represents an intermediate result unit whose type is enhanced images.
Definition
Assembly: DynamsoftCaptureVisionBundle.xcframework
- Objective-C
- Swift
@interface DSEnhancedImagesUnit: DSIntermediateResultUnitclass 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
-(DSEnhancedImageElement *)getEnhancedImage;func getEnhancedImage() -> EnhancedImageElement
Return Value
The enhanced image of type DSEnhancedImageElement.
setEnhancedImage
Set the DSEnhancedImageElement at the specified index.
- Objective-C
- Swift
-(NSInteger)setEnhancedImage:(DSEnhancedImageElement*)element;func setEnhancedImage(element: EnhancedImageElement) -> Int
Parameters
[in] element: The enhanced image to be set.
Return Value
Returns the ErrorCode if failed. Otherwise, returns 0.