GdPicture.NET Reference Guide
BarcodePDF417ReaderGetBarcodeConfidence Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : BarcodePDF417ReaderGetBarcodeConfidence Method
Barcode index. Must be between 1 and BarcodePDF417ReaderGetBarcodeCount returned value.
Returns the confidence of a barcode detected by the BarcodePDF417ReaderDoScan method.
Syntax
'Declaration
 
Public Function BarcodePDF417ReaderGetBarcodeConfidence( _
   ByVal BarcodeNo As Integer _
) As Single
public float BarcodePDF417ReaderGetBarcodeConfidence( 
   int BarcodeNo
)
public function BarcodePDF417ReaderGetBarcodeConfidence( 
    BarcodeNo: Integer
): Single; 
public function BarcodePDF417ReaderGetBarcodeConfidence( 
   BarcodeNo : int
) : float;
public: float BarcodePDF417ReaderGetBarcodeConfidence( 
   int BarcodeNo
) 
public:
float BarcodePDF417ReaderGetBarcodeConfidence( 
   int BarcodeNo
) 

Parameters

BarcodeNo
Barcode index. Must be between 1 and BarcodePDF417ReaderGetBarcodeCount returned value.

Return Value

The barcode confidence. In the range [(less trust) 0 - 100 (full trust)]
Remarks

This method is used in the "Barcode Recognition" Demo.

Example
Detecting all PDF417 barcodes in an image.
Dim oGdPictureImaging As New GdPicture.GdPictureImaging.
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("") 'Prompt the user to select an image
If imageId <> 0 Then
   If oGdPictureImaging.BarcodePDF417ReaderDoScan(ImageID) = GdPictureStatus.OK Then 'Start PDF417 barcode scanning process
      Dim BarcodeCount As Integer = oGdPictureImaging.BarcodePDF417ReaderGetBarcodeCount
      If BarcodeCount > 0 Then
         For i As Integer = 1 To BarcodeCount
            MessageBox.show("Barcode No: " & Str(i))
            MessageBox.show("Value: " & oGdPictureImaging.BarcodePDF417ReaderGetBarcodeValue(i))
            MessageBox.show("Rows: " & Str(oGdPictureImaging.BarcodePDF417ReaderGetBarcodeRows(i)))
            MessageBox.show("Columns: " & Str(oGdPictureImaging.BarcodePDF417ReaderGetBarcodeColumns(i)))
         Next
      Else
         MessageBox.show("No barcode detected !")
      End If
      oGdPictureImaging.BarcodePDF417ReaderClear() 'Release detection info from memory
   End If
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members