You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Link to public reproduction project repository
No response
Version with bug
8.0.3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
NA
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
I agree, this issue should go to the creators of the control. If there's an issue that they are having that is causing the slow performance that's specific with MAUI, we can make a new issue for that.
Description
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
<Label x:Name="barcodeResult" FontSize="20"/> <cv:CameraView x:Name="cameraView" WidthRequest="300" HeightRequest="200" CamerasLoaded="cameraView_CamerasLoaded" BarCodeDetectionEnabled="True" BarcodeDetected="cameraView_BarcodeDetected"/>
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.
Link to public reproduction project repository
No response
Version with bug
8.0.3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
NA
Relevant log output
No response
The text was updated successfully, but these errors were encountered: