Dev Center
Swift
Objective-C
Table of contents

DSLocalizedBarcodeElement Class

The DSLocalizedBarcodeElement class represents a localized barcode element detected in an image. It is inherited from DSRegionObjectElement class.

Definition

Assembly: DynamsoftBarcodeReader.framework

  • Objective-C
  • Swift
  1. @interface DSLocalizedBarcodeElement : DSRegionObjectElement
    
  2. class LocalizedBarcodeElement : RegionObjectElement
    

Methods

Methods Description
init Create a new DSLocalizedBarcodeElement object.
getAngle Get the angle of the localized barcode.
getConfidence Get the confidence of the localized barcode.
getPossibleFormats Get the possible formats of the localized barcode.
setPossibleFormat Set the possible format of the localized barcode.
getPossibleFormatsString Get the possible formats of the localized barcode as a string.
getModuleSize Get the module size of the localized barcode.

Inherited Methods

The following attributes are inherited from class DSRegionObjectElement.

Method Description
getLocation Returns the location info of the element.
setLocation Sets the location info of the element.
getReferencedElement Returns the referenced element that supports the capturing of this element.
getRegionObjectElementType Returns the type of the element.

init

Create a new DSLocalizedBarcodeElement object.

  • Objective-C
  • Swift
  1. - (instancetype)init;
    
  2. init()
    

getAngle

Get the angle of the localized barcode.

  • Objective-C
  • Swift
  1. - (NSInteger)getAngle
    
  2. func getAngle() -> NSInteger
    

Return Value

The angle of the localized barcode.

getConfidence

Get the confidence of the localized barcode.

  • Objective-C
  • Swift
  1. - (NSInteger)getConfidence
    
  2. func getConfidence() -> NSInteger
    

Return Value

The confidence of the localized barcode.

getPossibleFormats

Get the possible formats of the localized barcode.

  • Objective-C
  • Swift
  1. - (DSBarcodeFormat)getPossibleFormats
    
  2. func getPossibleFormats() -> BarcodeFormat
    

Return Value

The possible formats of the localized barcode.

setPossibleFormat

Set the possible format of the localized barcode. The possible format string is changed as well.

  • Objective-C
  • Swift
  1. - (NSInteger)setPossibleFormat:(DSBarcodeFormat)possibleFormat
    
  2. func setPossibleFormat(_ possibleFormat: BarcodeFormat) -> NSInteger
    

Parameters

[in] possibleFormat: The possible format of the localized barcode.

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

getPossibleFormatsString

Get the possible formats of the localized barcode as a string.

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

Return Value

The possible formats of the localized barcode as a string.

getModuleSize

Get the module size of the localized barcode.

  • Objective-C
  • Swift
  1. - (NSInteger)getModuleSize
    
  2. func getModuleSize() -> NSInteger
    

Return Value

The module size of the localized barcode.

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version (10.2.10)
  • Version 10.x
    • Version 10.0.21
    • Version 10.0.20
  • Version 9.x
    • 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 +