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

.jpg Image can't decode #7

Open
lyellss opened this issue Aug 20, 2021 · 3 comments
Open

.jpg Image can't decode #7

lyellss opened this issue Aug 20, 2021 · 3 comments

Comments

@lyellss
Copy link

lyellss commented Aug 20, 2021

No description provided.

@KevinBLT
Copy link

KevinBLT commented Sep 1, 2021

Yes I've run into this, too.

Will this somehow be updated? I think it's a nice idea.
Hopefully this Lib is not created and immediately abandoned.

@xvrh
Copy link
Owner

xvrh commented Sep 1, 2021

Hi,
Can you provide a full example for me to reproduce the jpg issue?

Hopefully this Lib is not created and immediately abandoned.

Yeah it's be a bit sad. I created this lib mainly as an experiment to see what could be the performance of a dart-only QR decoder bind to the standard flutter camera stream.

I plan to have another look when Dart Isolate become faster (dart-lang/sdk#46754).

@KevinBLT
Copy link

KevinBLT commented Sep 2, 2021

Hi, sorry - it's now working with "decodeImage" instead of "decodeJpg". The PNG version worked then I tried JPG and had an error and so this issue so I thought it's the same. Now I have no errors and it works.

I use this on the server since we have users that have incredibly slow smartphones that struggle with detection.
Somehow this lib is able to decode QR from jpg with a quality of 0.05 (canvas.toDataUrl('image/jpeg', 0.05)) which is nice since for a scan I just send this low resolution image to the server which is 5kb.

This is really fine for our usecase and other libs don't have such a great detection.

Example (rectangle is to hide qr data):
image

This is detected just fine. We would also have use cases for bar codes. Thanks! :-)
Please keep it running I think it's really good to port such code bases.

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