Dev Center
Swift
Objective-C
Table of contents

DSDecodedBarcodeElement Class

The DSDecodedBarcodeElement class represents a decoded barcode element. It inherits from the DSRegionObjectElement class and provides additional functionality for retrieving information about the decoded barcode.

Definition

Assembly: DynamsoftBarcodeReader.framework

  • Objective-C
  • Swift
  1. @interface DSDecodedBarcodeElement: DSRegionObjectElement
    
  2. class DecodedBarcodeElement: RegionObjectElement
    

Attributes

Attributes Type Description
text NSString * The text of the decoded barcode.
bytes NSData * The raw bytes of the decoded barcode.
isDPM BOOL Whether the barcode is a DPM (Direct Part Marking) barcode (decoded by DPMReadingMode).
isMirrored BOOL Whether the barcode is mirrored (decoded by MirrorMode).
format DSBarcodeFormat The format of the decoded barcode as a barcode format enumeration.
formatString NSString * The format of the decode barcode as a string.
angle NSInteger The orientation angle of the barcode.
moduleSize NSInteger The module size of the decoded barcode.
confidence NSInteger The confidence score of the barcode recognition result.
details DSBarcodeDetails * The details of the decoded barcode.
extendedBarcodeResults NSArray<DSExtendedBarcodeResult *> * An array of extended barcode results.

Inherited Attributes

The following attributes are inherited from class DSRegionObjectElement.

Attributes Type Description
location DSQuadrilateral * The location info of the element that defined in DSQuadrilateral.
referencedElement DSRegionObjectElement * The referenced element that supports the capturing of this element.
regionObjectElementType DSRegionObjectElementType The type of the element.

text

The text of the decoded barcode.

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

bytes

The raw bytes of the decoded barcode.

  • Objective-C
  • Swift
  1. @property(nonatomic, nullable, readonly) NSData* bytes;
    
  2. var bytes: Data? { get }
    

isDPM

Whether the barcode is a DPM (Direct Part Marking) barcode (decoded by DPMReadingMode).

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

isMirrored

Whether the barcode is mirrored (decoded by MirrorMode).

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

format

The format of the decoded barcode as a barcode format enumeration.

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

formatString

The format of the decode barcode as a string.

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

angle

The orientation angle of the barcode.

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

moduleSize

The module size of the decoded barcode.

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

confidence

The confidence score of the barcode recognition result.

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

details

The details of the decoded barcode.

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

extendedBarcodeResults

An array of extended barcode results.

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

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

version 10.0.21

  • Latest version (10.2.10)
  • Version 10.x
    • 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.13
    • Version 9.2.11
    • 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 7.x
    • Version 7.6.0
    • Version 7.5.0
Change +