Zxing Library version I tested with is 1.03 (attached above)
For my app, I took a lot of code from Johan's example programme and modified it a little. My programme is mainly about scanning Code39, QR and Datamatrix. The good performance of the library in my program is due to optimised settings and less to the library itself, but above all to the camera optics of the A55, which are a class above those of my old smartphone.
The hit rate can be significantly improved by automatically switching on the lamp in the recording programme.
I have not noticed any advantages or disadvantages in terms of speed. But here too I would favour Zxing, simply because the library runs under SDK 34 and can replace ZBar with only minimal changes. There may be slight advantages in focussing with ZBar. But these can be easily cancelled out. As I always have to scan the same type of labels with the app, I have already programmed the scanner accordingly at the start with regard to the zoom, which significantly shortens the focussing phase of the optics. You have to try a little to find the optimum. The reward is an immediate positive match when a code appears in the window.
I have written this little routine for this purpose, as the starting value for focussing cannot be set directly:
'Adjust Zoom to 25:
If ScanStarted = True Then
Dim Autozoom = ZXScanPart.CurrentZoomValue As Int
If Autozoom < 25 Then
Do While Autozoom <> 25
ZXScanPart.zoomIn(1)
Autozoom = ZXScanPart.CurrentZoomValue
Loop
End If
If Autozoom > 25 Then
Do While Autozoom <> 25
ZXScanPart.zoomIn(-1)
Autozoom = ZXScanPart.CurrentZoomValue
Loop
End If
End If
Thanks for all the feedback in this old thread. I was very pleased to receive it. And as I said, the credit in this case goes to my friend Johan and not to me.
PS:
If you scan QR codes and have somehow preselected this option in the barcode types:
For ZBar this is the code type
QRCode
For Zxing it is the code type
QR_Code .
(I was wondering why the library does not scan QR...
)