LocalizedBarcodeElement Class
LocalizedBarcodeElement extends the RegionObjectElement class and represents a localized barcode element detected in an image.
Definition
Assembly: DynamsoftCaptureVisionBundle.aar
Namespace: com.dynamsoft.dbr.intermediate_results
class LocalizedBarcodeElement extends RegionObjectElement
Methods
| Method | Description |
|---|---|
getAngle |
Returns the orientation angle of the localized barcode. |
getConfidence |
Returns the confidence score of the localized barcode. |
getPossibleFormats |
Returns the possible formats of the localized barcode. |
setPossibleFormats |
Sets the possible format of the localized barcode. |
getPossibleFormatsString |
Returns the possible formats of the localized barcode as a string. |
getModuleSize |
Returns the module size of the localized barcode. |
setLocation |
Sets the location of the localized barcode. |
The following methods are inherited from class RegionObjectElement.
| Method | Description |
|---|---|
getImageData |
Returns the ImageData of the image that produce this element. |
getLocation |
Returns the location info of the element. |
getReferencedElement |
Returns the referenced element that supports the capturing of this element. |
getType |
Returns the type of the element. |
getAngle
Returns the orientation angle of the localized barcode element, indicating how the element is positioned or rotated within the barcode.
int getAngle();
Return value
An integer representing the orientation angle of the localized barcode.
getConfidence
Returns the confidence/reliability score of the localization of the barcode element.
int getConfidence();
Return value
An integer representing the confidence score of the localized barcode element, which represents the confidence that the positioning area is a barcode.
getPossibleFormats
Returns the possible formats of the localized barcode since the barcode has not been decoded yet, so the exact format is not yet determined.
long getPossibleFormats();
Return value
Returns the possible format(s) of the localized barcode.
See Also
setPossibleFormats
Set the possibleformat of the barcode.
void setPossibleFormats(@EnumBarcodeFormat long possibleFormats);
Parameters
possibleFormats: The format of the barcode.
getPossibleFormatsString
Returns the possible format(s) of the localized barcode as a string, with each format split by a comma (“,”). Since the barcode has not been decoded yet, the exact format is not yet determined.
String getPossibleFormatsString();
Return value
A string representing all the possible formats of the localized barcode.
getModuleSize
Returns the size of the individual modules within the localized barcode element.
int getModuleSize();
Return value
An integer representing the module size of the localized barcode.
setLocation
Sets the location of the localized barcode.
int setLocation(Quadrilateral location)
Parameters
location: The location of the localized barcode, represented as a Quadrilateral.
Return value
Returns 0 if the location is set successfully, otherwise returns the error code.