GdPicture.NET Reference Guide
BarcodeMicroQRReaderGetBarcodeConfidence Method (GdPictureImaging)
Example 





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

Parameters

BarcodeNo
Barcode index. Must be between 1 and BarcodeMicroQRReaderGetBarcodeCount 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 Micro QR 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.BarcodeMicroQRReaderDoScan(ImageID) = GdPictureStatus.OK Then
      'Start Micro QR barcode scanning process
      Dim BarcodeCount As Integer = oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeCount
      If BarcodeCount > 0 Then
         For i As Integer = 1 To BarcodeCount
            MessageBox.show("Barcode No: " & Str(i))
            MessageBox.show("Value: " & oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeValue(i))
         Next
      Else
         MessageBox.show("No barcode detected !")
      End If
      oGdPictureImaging.BarcodeMicroQRReaderClear() 'Release detection info from memory
   End If
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members