Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
DSIntermediateResultUnit
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.
Definition
Assembly: DynamsoftCore.framework
- Objective-C
- Swift
@interface DSIntermediateResultUnit : NSObject
class IntermediateResultUnit : NSObject
Attributes
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. |
Methods
Method | Description |
---|---|
getTransformMatrix |
Gets the transformation matrix via DSTransformMatrixType . |
clone |
Creates a copy of the intermediate result unit. |
hashId
The hash ID of the unit.
- Objective-C
- Swift
@property(nonatomic, copy, readonly) NSString *hashId;
var hashId: String? { get }
originalImageHashId
The hash ID of the original image. You can use this ID to get the original image via IntermediateResultManager class.
- Objective-C
- Swift
@property(nonatomic, copy, readonly) NSString *originalImageHashId;
var originalImageHashId: String? { get }
originalImageTag
The image tag of the original image.
- Objective-C
- Swift
@property(nonatomic, strong, readonly, nullable) DSImageTag *originalImageTag;
var originalImageTag: ImageTag? { get }
type
The type of the intermediate result unit.
- Objective-C
- Swift
@property(nonatomic, assign, readonly) EnumIntermediateResultUnitType type;
var type: EnumIntermediateResultUnitType { get }
getTransformMatrix
Gets the transformation matrix via DSTransformMatrixType
.
- Objective-C
- Swift
-(CGAffineTransform)getTransformMatrix:(DSTransformMatrixType)matrixType;
func getTransformMatrix(DSTransformMatrixType matrixType) -> CGAffineTransform
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
clone
Creates a copy of the intermediate result unit.
- Objective-C
- Swift
- (DSIntermediateResultUnit*)clone;
func clone() -> IntermediateResultUnit
Return Value
A copy of the intermediate result unit.
Code Snippet
- Objective-C
- Swift
DSIntermediateResultUnit *unitCopy = [unit clone];
let unitCopy = unit.clone()