This interface holds a collection of barcode results.
Usually you get the LBarcodeResults object from the ILBarcode::Detect() as results. You can then use this interface to access individual result and draw the results on graphics windows.
Example Code
C++
ILBarcodeResultsPtr codeResults;
LPVErrorCode err = barcodeDetector->Detect(img, roi, &codeResults);
if (err != LPVErrorCode::LPVNoError) return;
int c = codeResults->Count();
for (int i = 0; i < c; ++i) {
ILBarcodeResultPtr codeRes = codeResults->Item(i);
}
LPVErrorCode
This enumeration represents the type of a LPV function error.
Definition: LPVCore.idl:530
C#
LBarcodeResults codeResults;
LPVErrorCode err = barcodeDetector.Detect(img, (LRegion)roi, out codeResults);
int c = codeResults.Count();
for (int i = 0; i < c; ++i) {
LBarcodeResult codeRes = codeResults.Item(i);
}
COM
ILBarcodeResultsPtr codeResults;
LPVErrorCode err = barcodeDetector->Detect(img, roi, &codeResults);
if (err != LPVErrorCode::LPVNoError) return;
int c = codeResults->Count();
for (int i = 0; i < c; ++i) {
ILBarcodeResultPtr codeRes = codeResults->Item(i);
}
Note: This interface is currently not available on Linux / MacOS platform.