layout | title | description | keywords | needGenerateH3Content | needAutoGenerateSidebar | noTitleIndex |
---|---|---|---|---|---|---|
default-layout |
DSIntermediateResultUnit - Dynamsoft Core Module iOS Edition API Reference |
The class DSIntermediateResultUnit of Dynamsoft Core Module represents an intermediate result unit used in image processing, which is an abstract base class with multiple subclasses. |
intermediate result unit, image processing, objective-c, swift |
true |
true |
true |
The DSIntermediateResultUnit
class represents an intermediate result unit used in image processing. It is an abstract base class with multiple subclasses, each representing a different type of unit such as pre-detected regions, localized barcodes, decoded barcodes, localized text lines, binary image, gray image, etc.
Assembly: DynamsoftCore.framework
>- Objective-C >- Swift > >1. ```objc @interface DSIntermediateResultUnit : NSObject ``` 2. ```swift class IntermediateResultUnit : NSObject ```Attributes | Type | Description |
---|---|---|
hashId |
NSString * | The hash ID of the unit. |
originalImageHashId |
NSString * | The hash ID of the original image. You can use this ID to get the original image via IntermediateResultManager class. |
originalImageTag |
DSImageTag * | The image tag of the original image. |
type |
DSIntermediateResultUnitType | The type of the intermediate result unit. |
Method | Description |
---|---|
getTransformMatrix |
Gets the transformation matrix via DSTransformMatrixType . |
clone |
Creates a copy of the intermediate result unit. |
The hash ID of the unit.
>- Objective-C >- Swift > >1. ```objc @property(nonatomic, copy, readonly) NSString *hashId; ``` 2. ```swift var hashId: String? { get } ```The hash ID of the original image. You can use this ID to get the original image via IntermediateResultManager class.
>- Objective-C >- Swift > >1. ```objc @property(nonatomic, copy, readonly) NSString *originalImageHashId; ``` 2. ```swift var originalImageHashId: String? { get } ```The image tag of the original image.
>- Objective-C >- Swift > >1. ```objc @property(nonatomic, strong, readonly, nullable) DSImageTag *originalImageTag; ``` 2. ```swift var originalImageTag: ImageTag? { get } ```The type of the intermediate result unit.
>- Objective-C >- Swift > >1. ```objc @property(nonatomic, assign, readonly) EnumIntermediateResultUnitType type; ``` 2. ```swift var type: EnumIntermediateResultUnitType { get } ```Gets the transformation matrix via DSTransformMatrixType
.
Parameters
[in] matrixType
: The transform matrix type.
Return Value
The corresponding transformation matrices are as follows:
- local image to original image
- original image to local image
- rotated image to original image
- original image to rotated image
Creates a copy of the intermediate result unit.
>- Objective-C >- Swift > >1. ```objc - (DSIntermediateResultUnit*)clone; ``` 2. ```swift func clone() -> IntermediateResultUnit ```Return Value
A copy of the intermediate result unit.
Code Snippet
>- Objective-C >- Swift > >1. ```objc DSIntermediateResultUnit *unitCopy = [unit clone]; ``` 2. ```swift let unitCopy = unit.clone() ```