googlesamples / googlesamples/mlkit

[BarcodeScanner] CameraX poor performance vs Camera1

Open
#425 6 comments 4 reactions 1 assignee Claimed by @zhouyiself View on GitHub
Dominant language
Kotlin
Stars
4.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.