Closed breyed closed 4 months ago
Hello,
I have looked a bit into documentation and other resources online and by the looks of it this is useful for "quick and easy" barcode scanning but other people reported that the detection performance is lower and the detection speed gets slower with time. Also, the result has less data than Vision implementation, especially when all the features get implemented in .NET like payloadData
.
This projects main focus is continuous barcode scanning with maximum performance so I think I will stick to Vision implementation for now, although Vision consumes more memory even when doing nothing. You can always set PauseScanning
to true
to bypass the detection logic to save some battery.
I had just assumed that the integrated AVCaptureMetadataOutput solution would be preferable. I didn’t realize that the existing solution was a conscious decision based on awareness of all the options. Thanks for the research and attention to detail.
To minimize power consumption (and possibly improve performance) on iOS, BarcodeScanning.Native.Maui can use
AVCaptureMetadataOutput
to detect barcodes rather constantly capturing and analyzing frames. Here is a typical pattern: