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
@interface DSLocalizedBarcodeElement : DSRegionObjectElement
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
- (instancetype)init;
init()
getAngle
Get the angle of the localized barcode.
- Objective-C
- Swift
- (NSInteger)getAngle
func getAngle() -> NSInteger
Return Value
The angle of the localized barcode.
getConfidence
Get the confidence of the localized barcode.
- Objective-C
- Swift
- (NSInteger)getConfidence
func getConfidence() -> NSInteger
Return Value
The confidence of the localized barcode.
getPossibleFormats
Get the possible formats of the localized barcode.
- Objective-C
- Swift
- (DSBarcodeFormat)getPossibleFormats
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
- (NSInteger)setPossibleFormat:(DSBarcodeFormat)possibleFormat
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
- (NSString *)getPossibleFormatsString
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
- (NSInteger)getModuleSize
func getModuleSize() -> NSInteger
Return Value
The module size of the localized barcode.