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

Add support for BarcodeDetector and refactors around it #238

Merged
merged 7 commits into from
Jun 20, 2021

Conversation

mebjas
Copy link
Owner

@mebjas mebjas commented Jun 16, 2021

TODOs

  • Check support / performance on Android / IOS device
  • Add additional documentation (Github / article) for experimental features
    • Link this to readme
    • Update demo page
  • Call out formats not supported by this integration and reorder them lower down in the readme.

Notes:

  • On Chrome ZXing based decoder takes 20-25 ms on my Mac book pro 16.
  • On Chrome BarcodeDetector based decoder takes 8.6-11 ms on my Mac book pro 16.

closes #195

 TODOs
 - [ ] Check support / performance on Android / IOS device
 - [ ] Add additional documentation (Github / article) for experimental features
    - [ ] Link this to readme
    - [ ] Update demo page

Notes:
 - On Chrome `ZXing` based decoder takes `20-25` ms on my Mac book pro 16.
 - On Chrome `BarcodeDetector` based decoder takes `8.6-11 ms` on my Mac book pro 16.
Fix added for Safari.
Also, fixed some Codacy styling issues on readme
@mebjas
Copy link
Owner Author

mebjas commented Jun 20, 2021

Using native library has clear performance benefits but the support is not good yet.

Device With ZXing With BarcodeDecoder
Macbook Pro 16, Google Chrome 21 ms 10 ms
Pixel 4 Google Chrome 56 ms 23 ms
Pixel 4a Google Chrome 92 ms 47.3 ms
(low end) Android Device Google Chrome 373 ms 77.5 ms

@mebjas mebjas merged commit a14ca5e into master Jun 20, 2021
@mebjas mebjas deleted the native_decoder branch June 21, 2021 13:15
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

Successfully merging this pull request may close these issues.

[Feature Request] Use native detector if supported
1 participant