Access Results
Get Barcode Results
Methods
Properties
| Property |
Description |
| BarcodeResult |
This property gets the string value of the recognized barcode. |
| Confidence |
This property gets the confidence of the barcode that was recognized. |
| BarcodeCodeName |
This property gets the name of the recognized barcode. |
| BarcodeOrientation |
This property gets and sets the orientation of barcodes to search for in recognition. |
| BarcodeH |
This property gets the height of the image area of the recognized barcode. |
| BarcodeW |
This property gets the width of the image area of the recognized barcode. |
| BarcodeAppendCheckSum |
This property gets and sets a value which determines if a check sum value is appended to the barcode during recognition. |
| BarcodeResultStyle |
This property gets the numeration type of the recognized barcode. |
| BarcodeSkew |
This property gets the angle of the recognized barcode. |
| ChecksumCharCount |
This property gets the number of characters in the recognized checksum. |
| ChecksumOK |
This property gets a check if there is a valid checksum value for the recognized barcode. |
| NumBarcodes |
This property gets the number of barcodes recognized. |
Order of Results
Since Barcode Xpress can return multiple barcode results from a single scan, the detected barcode results (both solved and unsolved) will be sorted using the following criteria. Note that all solved barcodes will be ordered before unsolved barcodes.
-
First, the confidence factor is used to sort the barcode results from highest confidence to lowest. The
Confidence property gets the confidence of the barcode that was recognized.
-
Next, for any barcodes with the same confidence, they will then be sorted by their location, from top to bottom, then left to right.
| VB - Example code to get multiple barcode results (in an array) |
Copy Code |
'Sort the results top to bottom
Dim BarcodeArray() As BarcodeInfo
Redim BarcodeArray(0 To BarcodeXpress5.NumBarcodes - 1)
' fill the user type array
For i = 0 To BarcodeXpress5.NumBarcodes - 1
BarcodeXpress5.GetBarcode i
BarcodeArray(i).CodeName = BarcodeXpress5.BarcodeCodeName
BarcodeArray(i).result = BarcodeXpress5.BarcodeResult
BarcodeArray(i).CheckSumOK = BarcodeXpress5.CheckSumOK
BarcodeArray(i).Confidence = BarcodeXpress5.Confidence
BarcodeArray(i).Length = BarcodeXpress5.ResultLen
BarcodeArray(i).X = BarcodeXpress5.BarcodeX
BarcodeArray(i).Y = BarcodeXpress5.BarcodeY
BarcodeArray(i).H = BarcodeXpress5.BarcodeH
BarcodeArray(i).W = BarcodeXpress5.BarcodeW
Next i
' actual sort results top to bottom
Dim temp As BarcodeInfo
For i = Ubound(BarcodeArray) - 1 To 0 Step -1
For j = 0 To i
If BarcodeArray(j).Y > BarcodeArray(j + 1).Y Then
temp = BarcodeArray(j + 1)
BarcodeArray(j + 1) = BarcodeArray(j)
BarcodeArray(j) = temp
End If
Next
Next
|
See the Overview of Barcode Xpress topic for code examples on recognition results.
See Also