|
Set full page for barcode recognizing.
Public Function BarCodeReadFullPage() As Integer
|
If you want to scan faster, you may set BarCodeReadScanMultiple, BarCodeReadScanWithoutRotation, BarCodeReadScan45Rotation, BarCodeReadScan45CouterRotation, BarCodeReadScanAccuracy, BarCodeReadCustomRotation properties.
e.g. If you set BarCodeReadScanWithoutRotation = True, BarCodeReadScan45Rotation =True, BarCodeReadScan45CouterRotation =True It mean first it will load the image without any rotation, then scan the barcode, next rotate the image to 45 degree, scan the barcode , finally rotate the image with counter clockwise and scan the barcode. If your image contain one barcode and the barcode have not any rotation, you may set the following properties, it will scan faster. Scanner1.BarCodeReadScanMultiple = False Scanner1.BarCodeReadScanWithoutRotation = True Scanner1.BarCodeReadScan45Rotation =False Scanner1.BarCodeReadScan45CouterRotation =False Scanner1.BarCodeReadScanAccuracy = False Scanner1.BarCodeReadCustomRotation=0
No Parameter
Return Value
Return the number of barcode detected, if return value smaller than 0, it mean failed.
Example
|
Visual Basic Syntax ibarcodeCount = Me.Scanner1.BarCodeReadFullPage str1 = "Total " + Str(ibarcodeCount) + " BarCode detected" + Chr(13) + Chr(10)
For i = 0 To ibarcodeCount - 1 strTmp = Me.Scanner1.BarCodeGetType(i) + " score:" + Str(Me.Scanner1.BarCodeGetScore(i)) + " value:" + Me.Scanner1.BarCodeGetValue(i) str1 = str1 + Chr(13) + Chr(10) + strTmp Next
MsgBox str1
|
|
|
|
|