Open vplife1 opened 7 months ago
Did you try Release build of your app? The Debug build is slower, perhaps due to the debug output it is generating.
Are you building for Android?
@sechabamot Yes
@programatix @sechabamot Anything found ?
@programatix @sechabamot Anything found ?
As mentioned, DEBUG build is indeed very slow. Try RELEASE build. For me, RELEASE build performs a lot better, about the same as other barcode scanning projects.
Did you find a solution to this @vplife1 ? We've been trying the latest version of 1.5.1 and it seems very slow. 1.2.1 looks better but how did you solve this?
CameraView Performance Issue: Slow Barcode/QR Code Scanning
I am experiencing a significant performance issue with the CameraView in my .NET MAUI app when scanning barcodes and QR codes. The scanning process is taking much longer than expected, leading to delays in my application.
UI Code
Scan code `private void cameraView_CamerasLoaded(object sender, EventArgs e) { if (cameraView.Cameras.Count > 0) { cameraView.Camera = cameraView.Cameras.First(); MainThread.BeginInvokeOnMainThread(async () => { await cameraView.StopCameraAsync(); await cameraView.StartCameraAsync(); }); } }
Steps to Reproduce Launch the .NET MAUI app. Navigate to the page containing the CameraView for barcode/QR code scanning. Attempt to scan a barcode or QR code. Observe the time it takes for the scanning process to complete.
Expected Behavior: I expect the barcode/QR code scanning process to be quick and responsive, providing results promptly.
Actual Behavior: The scanning process is noticeably slow, and there is a significant delay before the results are obtained.