Resource Base
Table of contents

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
  1. @interface DSIntermediateResultUnit : NSObject
    
  2. 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
  1. @property(nonatomic, copy, readonly) NSString *hashId;
    
  2. 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
  1. @property(nonatomic, copy, readonly) NSString *originalImageHashId;
    
  2. var originalImageHashId: String? { get }
    

originalImageTag

The image tag of the original image.

  • Objective-C
  • Swift
  1. @property(nonatomic, strong, readonly, nullable) DSImageTag *originalImageTag;
    
  2. var originalImageTag: ImageTag? { get }
    

type

The type of the intermediate result unit.

  • Objective-C
  • Swift
  1. @property(nonatomic, assign, readonly) EnumIntermediateResultUnitType type;
    
  2. var type: EnumIntermediateResultUnitType { get }
    

getTransformMatrix

Gets the transformation matrix via DSTransformMatrixType.

  • Objective-C
  • Swift
  1. -(CGAffineTransform)getTransformMatrix:(DSTransformMatrixType)matrixType;
    
  2. 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
  1. - (DSIntermediateResultUnit*)clone;
    
  2. func clone() -> IntermediateResultUnit
    

Return Value

A copy of the intermediate result unit.

Code Snippet

  • Objective-C
  • Swift
  1. DSIntermediateResultUnit *unitCopy = [unit clone];
    
  2. let unitCopy = unit.clone()
    

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

version 3.0.20

  • Latest version
  • Version 2.x
    • Version 2.2.10
    • Version 2.0.21
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.2.10
    • Version 2.0.21
    • Version 2.0.20
    • Version 2.0.10
  • Version 1.x
    • Version 1.2.1
    • Version 1.2.0
    • Version 1.1.0
    • Version 1.0.0
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
    • Version 1.1.11
    • Version 1.1.9
    • Version 1.1.8
    • Version 1.1.7
    • Version 1.1.6
    • Version 1.1.5
    • Version 1.1.4
    • Version 1.1.3
    • Version 1.1.2
    • Version 1.1.1
    • Version 1.1.0
    • Version 1.0.0
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support