CCandidateBarcodeZonesUnit Class
The CCandidateBarcodeZonesUnit
class represents a unit that contains candidate barcode zones unit. It inherits from the CIntermediateResultUnit
class.
Definition
Namespace: dynamsoft::dbr::intermediate_results
Assembly: DynamsoftBarcodeReader
Inheritance: CIntermediateResultUnit -> CCandidateBarcodeZonesUnit
class CCandidateBarcodeZonesUnit: public CIntermediateResultUnit
Methods
Method | Description |
---|---|
AddCandidateBarcodeZone |
Adds a candidate barcode zone. |
GetCandidateBarcodeZone |
Gets a pointer to a specific candidate barcode zone. |
GetCount |
Gets the number of candidate barcode zones in the unit. |
RemoveAllCandidateBarcodeZones |
Removes all the candidate barcode zones. |
RemoveCandidateBarcodeZone |
Removes a candidate barcode zone at the specified index. |
SetCandidateBarcodeZone |
Sets a candidate barcode zone at the specified index. |
Inherited Methods
The following methods are inherited from class CIntermediateResultUnit
.
Method | Description |
---|---|
GetHashId |
Gets the hash ID of the unit. |
GetOriginalImageHashId |
Gets the hash ID of the original image. |
GetOriginalImageTag |
Gets the image tag of the original image. |
GetType |
Gets the type of the intermediate result unit. |
Clone |
Creates a copy of the intermediate result unit. |
SetHashId |
Sets the hash ID of the unit. |
SetOriginalImageHashId |
Sets the hash ID of the original image. |
SetOriginalImageTag |
Sets the image tag of the original image. |
Retain |
Increases the reference count of the unit. |
Release |
Decreases the reference count of the unit. |
GetTransformMatrix |
Gets the transformation matrix via TransformMatrixType . |
SetTransformMatrix |
Sets the transformation matrix via TransformMatrixType . |
Replace |
Replaces the CIntermediateResultUnit object to the specified CIntermediateResultUnit object. |
AddCandidateBarcodeZone
Adds a candidate barcode zone.
virtual int AddCandidateBarcodeZone(const CCandidateBarcodeZone& barcodeZone, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;
Parameters
barcodeZone
The candidate barcode zone.
matrixToOriginalImage
The matrix to original image.
Return value
Returns 0 if successful, otherwise returns a negative value.
GetCandidateBarcodeZone
Gets a pointer to a candidate barcode zone specified by index.
virtual int GetCandidateBarcodeZone(int index, CCandidateBarcodeZone* barcodeZone) const = 0;
Parameters
[in] index
The index of the candidate barcode zone.
[out] quad
The pointer to the candidate barcode zone.
Return value
Returns 0 if successful, otherwise returns a negative value.
See Also
GetCount
Gets the number of localized barcodes in the unit.
virtual int GetCount() const = 0;
Return value
Returns the number of candidate barcode zones in the unit.
RemoveAllCandidateBarcodeZones
Removes all the candidate barcode zones
virtual void RemoveAllCandidateBarcodeZones() = 0;
RemoveCandidateBarcodeZone
Removes a candidate barcode zone at the specified index
virtual int RemoveCandidateBarcodeZone(int index) = 0;
Parameters
index
The index of the candidate barcode zone.
Return value
Returns 0 if successful, otherwise returns a negative value.
SetCandidateBarcodeZone
Sets a candidate barcode zone at the specified index.
virtual int SetCandidateBarcodeZone(int index, const CCandidateBarcodeZone& barcodeZone, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;
Parameters
index
The index of the candidate barcode zone.
barcodeZone
The candidate barcode zone.
matrixToOriginalImage
The matrix to original image.
Return value
Returns 0 if successful, otherwise returns a negative value.