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 IntermediateResultUnit class represents the base structure for units of intermediate results in image processing. This class acts as a base and contains common methods shared by all intermediate result units.

Definition

Assembly: DynamsoftCore.framework

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

Methods

Method Description
getHashId Gets the hash ID of the unit. The hash ID is the unique identifier for the intermediate result unit.
getOriginalImageHashId Gets the hash ID of the original image associated with this unit.
getOriginalImageTag Gets the tag associated with the original image.
getType Gets the type of the intermediate result unit, defined by the enumeration IntermediateResultUnitType.
getTransformMatrix Gets the transformation matrix via DSTransformMatrixType.
clone Creates a copy of the intermediate result unit.
replace Replaces the content of the intermediate result unit.

getHashId

Gets the hash ID of the unit. The hash ID is the unique identifier for the intermediate result unit.

  • Objective-C
  • Swift
  1. -(NSString*)getHashId;
    
  2. func getHashId() -> String
    

getOriginalImageHashId

Gets the hash ID of the original image associated with this unit. You can use this ID to get the original image via DSIntermediateResultManager class.

  • Objective-C
  • Swift
  1. -(NSString*)getOriginalImageHashId;
    
  2. func getOriginalImageHashId() -> String
    

getOriginalImageTag

Gets the tag associated with the original image.

  • Objective-C
  • Swift
  1. -(nullable DSImageTag*)getOriginalImageTag;
    
  2. func getOriginalImageTag() -> ImageTag?
    

Return Value

The image tag of the original image.

getType

Gets the type of the intermediate result unit, defined by the enumeration DSIntermediateResultUnitType.

  • Objective-C
  • Swift
  1. -(DSIntermediateResultUnitType)getType;
    
  2. func getType() -> DSIntermediateResultUnitType
    

Return Value

The type of the intermediate result unit.

getTransformMatrix

Gets the transformation matrix via DSTransformMatrixType.

  • Objective-C
  • Swift
  1. -(CGAffineTransform)getTransformMatrix:(DSTransformMatrixType)type;
    
  2. func getTransformMatrix(_ type: DSTransformMatrixType) -> 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.

replace

Replaces the content of the intermediate result unit.

  • Objective-C
  • Swift
  1. - (NSInteger)replace:(DSIntermediateResultUnit*)oldUnit;
    
  2. func replace(_ oldUnit: DSIntermediateResultUnit) -> NSInteger
    

Parameters

[in] oldUnit: The old unit.

Return Value

A NSInteger that indicates whether the replace is success. If success returns 0, otherwise returns the error code.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • 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.13
    • Version 1.1.12
    • 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