DecodedBarcodeElement Class
The DecodedBarcodeElement class represents a decoded barcode element. It inherits from the RegionObjectElement class and provides additional functionality for retrieving information about the decoded barcode.
Definition
Namespace: Dynamsoft.DBR
Inheritance: RegionObjectElement -> DecodedBarcodeElement
class DecodedBarcodeElement : RegionObjectElement
Methods
| Method | Description |
|---|---|
GetFormat |
Gets the format of the barcode. |
GetFormatString |
Gets the string representation of the barcode format. |
GetText |
Gets the text of the decoded barcode. |
GetBytes |
Gets the raw bytes of the decoded barcode. |
GetBytesLength |
Gets the length of the raw bytes of the decoded barcode. |
GetDetails |
Gets the details of the decoded barcode. |
IsDPM |
Determines whether the decoded barcode is a DPM (Direct Part Marking) code. |
IsMirrored |
Determines whether the decoded barcode is mirrored. |
GetAngle |
Gets the orientation angle of the barcode. |
GetModuleSize |
Gets the module size of the barcode. |
GetConfidence |
Gets the confidence score of the barcode recognition result. |
GetExtendedBarcodeResultsCount |
Gets the number of extended barcode results for the decoded barcode. |
GetExtendedBarcodeResult |
Gets the extended barcode result at the specified index for the decoded barcode. |
GetExtendedBarcodeResults |
Gets all the extended barcode results. |
SetFormat |
Sets the format of the barcode. |
SetText |
Sets the text of the decoded barcode. |
SetBytes |
Sets the raw bytes of the decoded barcode. |
SetConfidence |
Sets the confidence score of the barcode recognition result. |
SetLocation |
Sets the location of the current object. |
Inherited Methods
Checkout inherited methods from RegionObjectElement for more details.
GetFormat
It is used to get the format of the barcode.
EnumBarcodeFormat GetFormat()
Return value
Returns the format of the barcode.
See Also
GetFormatString
It is used to get the string representation of the barcode format.
string GetFormatString()
Return value
Returns the string representation of the barcode format.
GetText
Gets the text of the decoded barcode.
string GetText()
Return value
Returns the text of the decoded barcode.
GetBytes
Gets the raw bytes of the decoded barcode.
byte[] GetBytes()
Return value
Returns the raw bytes of the decoded barcode.
GetBytesLength
Gets the length of the raw bytes of the decoded barcode.
int GetBytesLength()
Return value
Returns the length of the raw bytes of the decoded barcode.
GetDetails
Gets the details of the decoded barcode.
BarcodeDetails* GetDetails()
Return value
Returns the details of the decoded barcode.
See Also
IsDPM
Determines whether the decoded barcode is a DPM (Direct Part Marking) code.
bool IsDPM()
Return value
Returns true if the decoded barcode is a DPM code, false otherwise.
IsMirrored
Determines whether the decoded barcode is mirrored.
bool IsMirrored()
Return value
Returns true if the decoded barcode is mirrored, false otherwise.
GetAngle
It is used to get the orientation angle of the barcode.
int GetAngle()
Return value
Returns the orientation angle of the barcode.
GetModuleSize
It is used to get the module size of the barcode.
int GetModuleSize()
Return value
Returns the module size of the barcode.
GetConfidence
It is used to get the confidence score of the barcode recognition result.
int GetConfidence()
Return value
Returns the confidence score of the barcode recognition result.
GetExtendedBarcodeResultsCount
Gets the number of extended barcode results for the decoded barcode.
int GetExtendedBarcodeResultsCount()
Return value
Returns the number of extended barcode results for the decoded barcode.
GetExtendedBarcodeResult
Gets the extended barcode result at the specified index for the decoded barcode.
ExtendedBarcodeResult GetExtendedBarcodeResult(int index)
Parameters
[in] index The index of the extended barcode result to retrieve.
Return value
Returns the extended barcode result at the specified index for the decoded barcode.
See Also
GetExtendedBarcodeResults
Gets all the extended barcode results.
ExtendedBarcodeResult[] GetExtendedBarcodeResults()
Return value
Returns all the extended barcode results.
See Also
SetFormat
Sets the format of the barcode.
void SetFormat(EnumBarcodeFormat format)
Parameters
[in] format The format of the barcode.
See Also
SetText
Sets the text of the barcode.
void SetText(string text)
Parameters
[in] text The text of the barcode.
SetBytes
Sets the raw bytes of the barcode.
void SetBytes(byte[] bytes)
Parameters
[in] bytes The raw bytes of the barcode.
SetConfidence
Sets the confidence of the barcode.
void SetConfidence(int confidence)
Parameters
[in] confidence The confidence of the barcode.
SetLocation
Sets the location of the current object.
void SetLocation(Quadrilateral location)
Parameters
[in] location The location of the barcode.
See Also