Open garciacastano09 opened 2 years ago
Thanks for the feedback!
Which barcode scanning dependency version you're testing (com.google.mlkit:barcode-scanning:17.0.1 ?)?
I tested them locally and the performance looks similar. (resolutions are a little bit different than yours though due to the device capability, but it shouldn't mater much)
LivePreviewActivity
CameraXLivePreviewActivity
Yes, I'm using com.google.mlkit:barcode-scanning:17.0.1, I didn't change any dependency from the master branch. Leaving here some data on the OS I have in the device.
I have tested the sample app on my Pixel 5 using the QR codes which I have found in the internet (http://qrcode.meetheed.com/qrcode_examples.php)
Unfortunately I have noticed slight, but constant performance difference between Camara1 and CamaraX api as well. https://photos.app.goo.gl/Y4XnPyi9w32psBtm8
I have the same issue with [Vision Module].
I run the vision demo on xiaomi CC 9E soc: Qualcomm snapdragon 665
LivePreviewActivity:
CameraXLivewPreviewActivity:
So what's wrong with CameraX?
Have anyone figured out what was wrong with CameraX setup?
Any news on this ? I'm getting consistently lower performance on CameraX vs Camera1 on barcode scanning and text recognition.
Hi all,
First, thank you for the great sample app, it really accelerates learning.
I was running the sample app with the barcode scanner, and I noticed that the LivePreviewActivity has a much better performance than the CameraXLivePreviewActivity. I'm interested on implementing a similar barcode scanning approach, and I'm concerned about using the CameraX library, given the poor performance. Here are a couple screenshots from a Samsung Galaxy S8 running both activities against the same image.
What's the reason behind the performance difference? Is it a bug in the sample app or is it a performance gap between Camera1 and CameraX libraries?
Thank you, Jorge