LocalizedBarcodesUnit Class
The LocalizedBarcodesUnit class represents a unit that contains localized barcodes unit. It inherits from the IntermediateResultUnit class.
Definition
Package: com.dynamsoft.dbr.intermediate_results
Inheritance: IntermediateResultUnit -> LocalizedBarcodesUnit
public class LocalizedBarcodesUnit extends IntermediateResultUnit
Methods
| Method | Description |
|---|---|
addLocalizedBarcode |
Adds a localized barcode. |
getCount |
Gets the number of localized barcodes in the unit. |
getLocalizedBarcode |
Gets the localized barcode at the specified index. |
getLocalizedBarcodes |
Gets all localized barcodes. |
removeAllLocalizedBarcodes |
Removes all localized barcodes. |
removeLocalizedBarcode |
Removes the localized barcode at the specified index. |
setLocalizedBarcode |
Sets the localized barcode at the specified index. |
addLocalizedBarcode
Adds a localized barcode to the unit.
public void addLocalizedBarcode(LocalizedBarcodeElement localizedBarcode) throws BarcodeReaderException
public void addLocalizedBarcode(LocalizedBarcodeElement localizedBarcode, double[] matrixToOriginalImage) throws BarcodeReaderException
Parameters
localizedBarcode The localized barcode element to add.
matrixToOriginalImage The matrix to original image. The array length must be 9.
Exceptions
BarcodeReaderException If an error occurs while adding the localized barcode.
IllegalArgumentException If the matrixToOriginalImage array length is not 9.
See Also
getCount
Gets the number of localized barcodes in the unit.
public int getCount()
Return value
Returns the number of localized barcodes in the unit.
getLocalizedBarcode
Gets the localized barcode at the specified index.
public LocalizedBarcodeElement getLocalizedBarcode(int index) throws BarcodeReaderException
Parameters
index The index of the localized barcode to retrieve.
Return value
Returns a LocalizedBarcodeElement object at the specified index.
Exceptions
BarcodeReaderException If an error occurs while retrieving the localized barcode.
See Also
getLocalizedBarcodes
Gets all localized barcodes.
public LocalizedBarcodeElement[] getLocalizedBarcodes()
Return value
Returns an array of all LocalizedBarcodeElement objects.
See Also
removeAllLocalizedBarcodes
Removes all localized barcodes from the unit.
public void removeAllLocalizedBarcodes()
removeLocalizedBarcode
Removes the localized barcode at the specified index.
public void removeLocalizedBarcode(int index) throws BarcodeReaderException
Parameters
index The index of the localized barcode to remove.
Exceptions
BarcodeReaderException If an error occurs while removing the localized barcode.
See Also
setLocalizedBarcode
Sets the localized barcode at the specified index.
public void setLocalizedBarcode(int index, LocalizedBarcodeElement localizedBarcode) throws BarcodeReaderException
public void setLocalizedBarcode(int index, LocalizedBarcodeElement localizedBarcode, double[] matrixToOriginalImage) throws BarcodeReaderException
Parameters
index The index at which to set the localized barcode.
localizedBarcode The localized barcode element to set.
matrixToOriginalImage The matrix to original image. The array length must be 9.
Exceptions
BarcodeReaderException If an error occurs while setting the localized barcode.
IllegalArgumentException If the matrixToOriginalImage array length is not 9.
See Also