I have an application that utilizes a webcam to snap a picture, display it in a PictureBox control, and then scan the image from the control. The code I'm using is:
- Code: Select all
Dim datas As String() = Spire.Barcode.BarcodeScanner.Scan(PictureBox1.Image, Spire.Barcode.BarCodeType.Pdf417)
The idea is that it's going to keep snapping and scanning pictures until it successfully scans a PDF417 barcode. However, the very first image that gets scanned (usually before I'm even pointing the camera at the barcode) gets a result which is not Nothing (in vb terms), but a string array of length zero. I'm wondering if the above code is scanning what I think it is, and if the result I'm getting is what I should get if no barcode is found?