layout | title | description | keywords | permalink |
---|---|---|---|---|
default-layout |
DSLocalizedBarcodeElement Class - Dynamsoft Barcode Reader iOS Edition |
The DSLocalizedBarcodeElement class represents a localized barcode element detected in an image. It is inherited from DSRegionObjectElement class. |
GetAngle, GetConfidence, GetFormat, GetFormatString, GetModuleSize, DSLocalizedBarcodeElement, api reference |
/programming/objectivec-swift/api-reference/localized-barcode-element.html |
The DSLocalizedBarcodeElement
class represents a localized barcode element detected in an image. It is inherited from [DSRegionObjectElement
]({{ site.dcv_ios_api }}core/intermediate-results/region-object-element.html) class.
Assembly: DynamsoftBarcodeReader.framework
>- Objective-C >- Swift > >1. ```objc @interface DSLocalizedBarcodeElement : DSRegionObjectElement ``` 2. ```swift class LocalizedBarcodeElement : RegionObjectElement ```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. |
The following attributes are inherited from class [DSRegionObjectElement
]({{ site.dcv_ios_api }}core/intermediate-results/region-object-element.html).
{%- include api-reference/region-object-element-ios.md -%}
Create a new DSLocalizedBarcodeElement
object.
Get the angle of the localized barcode.
>- Objective-C >- Swift > >1. ```objc - (NSInteger)getAngle ``` 2. ```swift func getAngle() -> NSInteger ```Return Value
The angle of the localized barcode.
Get the confidence of the localized barcode.
>- Objective-C >- Swift > >1. ```objc - (NSInteger)getConfidence ``` 2. ```swift func getConfidence() -> NSInteger ```Return Value
The confidence of the localized barcode.
Get the possible formats of the localized barcode.
>- Objective-C >- Swift > >1. ```objc - (DSBarcodeFormat)getPossibleFormats ``` 2. ```swift func getPossibleFormats() -> BarcodeFormat ```Return Value
The possible formats of the localized barcode.
Set the possible format of the localized barcode. The possible format string is changed as well.
>- Objective-C >- Swift > >1. ```objc - (NSInteger)setPossibleFormat:(DSBarcodeFormat)possibleFormat ``` 2. ```swift 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.
Get the possible formats of the localized barcode as a string.
>- Objective-C >- Swift > >1. ```objc - (NSString *)getPossibleFormatsString ``` 2. ```swift func getPossibleFormatsString() -> String ```Return Value
The possible formats of the localized barcode as a string.
Get the module size of the localized barcode.
>- Objective-C >- Swift > >1. ```objc - (NSInteger)getModuleSize ``` 2. ```swift func getModuleSize() -> NSInteger ```Return Value
The module size of the localized barcode.