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

Pixelated camera #3674

Closed
Mattis142 opened this issue Feb 5, 2023 · 10 comments · Fixed by #3767
Closed

Pixelated camera #3674

Mattis142 opened this issue Feb 5, 2023 · 10 comments · Fixed by #3767
Labels
blocked on flutter 🐛 bug Something isn't working

Comments

@Mattis142
Copy link

What

The image is simply pixelated, it's not an Autofocus thing like other people have, it's just completely pixelated

Steps to reproduce the behavior

Well it just kinda happened upon installation and hasn't been going away so far 😅

Expected behavior

A clear image that the app can actually scan from

Screenshot

Screenshot_20230205-221258_OpenFoodFacts
Screenshot_20230205-221240

Smartphone model

  • Device: OnePlus 7Pro
  • OS: Android 13 (custom ROM, I know you can't guarantee compatibility with that but no other app ever had this issue so idk)
  • App Version: 4.3.0
@M123-dev
Copy link
Member

M123-dev commented Feb 8, 2023

Heyy @MKCOOL142 that is sad to hear. Sadly, we don't have much impact on the low level camera implementation, we use the official flutter camera package (https://pub.dev/packages/camera). You could create an issue in there (I think all issues are tracked in the main repository)

@Mattis142
Copy link
Author

@M123-dev Are you aware of any testing tools ECT. i could use to debug this or at least be certain that it's caused by flutter?

@monsieurtanuki
Copy link
Contributor

@MKCOOL142 @M123-dev Actually I'm currently developing a new barcode scanner based on native methods. No "flutter camera" involved.

@M123-dev
Copy link
Member

M123-dev commented Feb 8, 2023

If you have flutter installed, you could try the official example app

https://github.com/flutter/plugins/tree/main/packages/camera/camera/example

If not, I can build the APK for you

@Mattis142
Copy link
Author

I mean I could try to get it working but I'm not that experienced with android studio so if you want to do that it'd probably make more sense

@M123-dev
Copy link
Member

M123-dev commented Feb 8, 2023

app-release.zip

this should work

@Mattis142
Copy link
Author

Thanks, it appears to be the exact same issue tho
Screenshot_20230208-212031_camera_example

@monsieurtanuki
Copy link
Contributor

@MKCOOL142 Just checking: in the OP the screenshot is taken from the barcode scan, right?
Do you experience bad display only for barcode scan, of also if you take a picture for a product (e.g. "ingredients")?
In a near future we'll probably get rid of flutter implementations of camera and use native code instead, either for barcode scan (I'm coding that) or for taking pictures (already done by image_picker I guess).

@Mattis142
Copy link
Author

Only the barcode scanner scan, adding ingredients opens my camera app and is therefore unaffected

@monsieurtanuki
Copy link
Contributor

Thank you for your answer @MKCOOL142! It confirms my analysis.
A solution would be to use a native barcode scanner, which I'm currently integrating in the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked on flutter 🐛 bug Something isn't working
3 participants