Closed induRaju closed 7 months ago
Using this package in a production environment is a significant risk, especially considering the ongoing issues with barcode scanning. Why is it still challenging to release a stable version with reliable barcode reading capabilities?
@hilkbahar I'm not sure if you're serious or not, but if you are serious: This package is running fully stable in multiple production apps. You can use Frame Processors to do a ton of magic, including fully custom QR code scanning with MLKit, ZXing or whatever library you prefer.
I built CodeScanner/useCodeScanner
afterwards because some people found Frame Processors to be too difficult, so it is an easy to use alternative that does not require Frame Processors or Worklets.
The CodeScanner API exposes the recommended underlying native platform features, Vision
on iOS and MLKit
on Android.
For me, both of those APIs worked fine for scanning a simple QR code. That's what it was tested on. It also works on other types of codes. If you need to scan multiple codes, increase performance, or whatever - you can always use a custom Frame Processor to achieve what you need.
Why is it still challenging to release a stable version with reliable barcode reading capabilities?
This is a free library you are using to gain profit for yourself/your company. If you want something fixed, pay for it and don't complain to authors and maintainers like me who do it in their free time.
@mrousavy - Thank you for the response. From custom Frame processors do you mean to use vision-camera-code-scanner which uses scanBarcodes and does v3 visioncamera supports vision-camera-code-scanner?
Yep, either vision-camera-dynamsoft-barcode-reader by @xulihang or vision-camera-code-scanner by @rodgomesc - not sure if there are more?
Ah sorry there's also vision-camera-barcode-scanner which uses MLKit on Android and Vision on iOS, by @mgcrea. This looks really stable and maintained to me.
I just tried it and you are right, it captures only one ean-13
code at a time, but can capture 4 or more qr
codes at a time.
I am not sure why this is happening, but I am using the underlying platform native APIs and there's nothing I can do. This is an Apple bug, so file a bug using their bug reporter. The related class is called AVCaptureMetadataOutput
, this can only capture 1 ean-13 code at a time.
Maybe it will get fixed in the next iOS update :)
What's happening?
I have built a barcode scanner using useCodeScanner but in IOS it scans only one code at a time. It works perfectly fine in Android.
Reproduceable Code
Relevant log output
Camera Device
Device
iPad (7th Generation) (iOS 16.2)
VisionCamera Version
3.7.0
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information