Dev Center
Swift
Objective-C
Table of contents

DSDecodedBarcodesResult Class

DSDecodedBarcodesResult represents a collection of DSBarcodeResultItem, the basic unit of a decoded barcode result. It provides access to information about the decoded barcodes of an image/frame, the source image/frame, and any errors that occurred during the barcode reading process.

Definition

Assembly: DynamsoftBarcodeReader.xcframework

  • Objective-C
  • Swift
  1. @interface DSDecodedBarcodesResult : NSObject
    
  2. class DecodedBarcodesResult : NSObject
    

Attributes

Attributes Type Description
items NSArray<DSBarcodeResultItem*> * An array of DSBarcodeResultItem, which is the basic unit of the captured results.
originalImageTag DSImageTag * The ImageTag of the original image.
originalImageHashId NSString * The hash ID of the original image.
rotationTransformMatrix CGAffineTransform The rotation transformation matrix of the original image relative to the rotated image.
errorCode NSInteger The error code should something go wrong during the barcode recognition process.
errorMessage NSString * The error message associated with the error code should something go wrong during the barcode recognition process.

items

An array of DSBarcodeResultItem, which is the basic unit of the barcode capture results.

  • Objective-C
  • Swift
  1. @property(nonatomic, nullable, readonly) NSArray<DSBarcodeResultItem *> *items;
    
  2. var items: [DSBarcodeResultItem]? { get }
    

originalImageHashId

The hash ID of the original image. You can use this ID to get the original image via DSIntermediateResultManager class.

  • Objective-C
  • Swift
  1. @property(nonatomic, copy, readonly) NSString *originalImageHashId;
    
  2. var originalImageHashId: String? { get }
    

originalImageTag

The ImageTag of the source image. The image tag contains info about the image such as the image ID and the image capture distance mode.

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

rotationTransformMatrix

The rotation transformation matrix of the original image relative to the rotated image. Please see CGAffineTransform for more info.

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

errorCode

The error code associated with the result should something go wrong during the barcode recognition process. For the full list of possible errors, please visit ErrorCode.

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

errorMessage

The error message associated with the error code should something go wrong during the barcode recognition process. For the full list of possible errors, please visit ErrorCode.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign, readonly) NSString * errorMessage;
    
  2. var errorMessage: String? { get }
    

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 10.x
      • Version 10.2.1100
      • Version 10.2.1101
      • Version 10.2.10
      • Version 10.0.21
      • Version 10.0.20
      • Version 10.2.10
      • Version 10.0.21
      • Version 10.0.20
    • Version 9.x
      • Version 9.6.40
      • Version 9.6.20
      • Version 9.6.11
      • Version 9.6.10
      • Version 9.6.0
      • Version 9.4.0
      • Version 9.2.11
      • Version 9.2.10
      • Version 9.0.2
      • Version 9.0.1
      • Version 9.0.0
      • Version 9.6.40
      • Version 9.6.20
      • Version 9.6.10
      • Version 9.6.0
      • Version 9.4.0
      • Version 9.2.13
      • Version 9.2.10
      • Version 9.0.2
      • Version 9.0.1
      • Version 9.0.0
    • Version 8.x
      • Version 8.9.3
      • Version 8.9.1
      • Version 8.9.0
      • Version 8.8.0
      • Version 8.6.0
      • Version 8.4.0
      • Version 8.2.1
      • Version 8.2.0
      • Version 8.1.2
      • Version 8.1.0
      • Version 8.0.0
      • Version 8.9.3
      • Version 8.9.1
      • Version 8.9.0
      • Version 8.8.0
      • Version 8.6.0
      • Version 8.4.0
      • Version 8.2.1
      • Version 8.2.0
      • Version 8.1.2
      • Version 8.1.0
      • Version 8.0.0
    • Version 7.x
      • Version 7.6.0
      • Version 7.5.0
      • Version 7.6.0
      • Version 7.5.0
    • Documentation Homepage
    Change +