Barcode Xpress for .NET Core v14.0 - Updated January 7, 2025
Accusoft.BarcodeXpressSdk Namespace / Result Class
Members Example




Result Class
The Results Class includes properties used to return barcode recognition results.
Object Model
Result ClassResultInfo2D Class
Syntax
'Declaration
 
Public Class Result 
 
'Usage
 
Dim instance As Result
Remarks

The Reader.Analyze method returns an array of Result objects. Each element of the Result array contains the results of a single recognized barcode (or unsolved barcode. See Reader.ReturnPossibleBarcodes).

Since BarcodeXpress can return multiple barcode results from a single scan, the detected barcode results (both solved and unsolved) are sorted using the following criteria.

Note: All solved barcodes are ordered before unsolved barcodes.

  • The confidence factor is used to sort the barcode results from the highest confidence to the lowest confidence.
  • For any barcodes with the same confidence value, they are sorted by their location, from top to bottom, then left to right.

Four points describe the location of the barcode on the image:

Example
using Accusoft.BarcodeXpressSdk;
             
// call Analyze to detect barcodes in the image
// all detected barcodes will be returned to the
// Result object array.
Result[] results = bcXpress.reader.Analyze(hDib);
            
// get some results info, if any
for (short i = 0; i < results.Length; i++)
{
   // get result for current barcode
   Result curResult = (Result)results.GetValue(i);
            
   // do something with results
   Console.WriteLine(curResult.BarcodeName);
   Console.WriteLine(curResult.BarcodeValue);
}
Inheritance Hierarchy

System.Object
   Accusoft.BarcodeXpressSdk.Result

See Also