Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low Camera FPS #1229

Open
haroke4 opened this issue Oct 29, 2024 · 4 comments
Open

Low Camera FPS #1229

haroke4 opened this issue Oct 29, 2024 · 4 comments

Comments

@haroke4
Copy link

haroke4 commented Oct 29, 2024

Hi! Thanks for your plugin!

When I use class MobileScanner, the camera view seems to run at 30 (or even lower) fps. Is this because my app runs on the debug version, or is it because of the plugin?
I was using an iPhone 13 with a full battery percentage.
How can I make it so it runs at max fps possible?

The code I was using is example/lib/barcode_scanner_simple.dart. link

@haroke4 haroke4 changed the title Camera FPS Low Camera FPS Oct 29, 2024
@navaronbracke
Copy link
Collaborator

I think it is intentional that the camera preview runs at 30 FPS, I haven't found documentation on why that is, though.

@khulegu
Copy link

khulegu commented Nov 14, 2024

Yeah, but the old library qr_code_scanner has much better framerate.

@navaronbracke
Copy link
Collaborator

Apparently this is because running on higher frame rates requires some configuration.

See https://stackoverflow.com/questions/57485050/how-to-increase-frame-rate-with-android-camerax-imageanalysis

@haroke4
Copy link
Author

haroke4 commented Dec 11, 2024

Hi, what about iOS? It looks very cheap when camera's fps is low T-T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants