gruhn / barcode-detector Goto Github PK
View Code? Open in Web Editor NEWSpec compliant polyfill of the Barcode Detection API π€³
Home Page: https://gruhn.github.io/barcode-detector/
License: MIT License
Spec compliant polyfill of the Barcode Detection API π€³
Home Page: https://gruhn.github.io/barcode-detector/
License: MIT License
Hey,
this lib seems great to use the modern barcode detection api. For me qrcode and code_128 is really interesting.
In the readme it states, BarcodeDetectorZXing is not exposed at the moment. I tried building and using it locally but it fails with lots of errors. Is there any way to use the ZXing Detector Polyfill yet?
Thanks!
The code accesses browser-only APIs on import such as EventTarget
, Blob
, etc. This makes the library not SSR friendly. It would be better access browser APIs as late as possible. Maybe on new BarcodeDetector()
.
master
branch failed. π¨I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. Iβm sure you can fix this πͺ.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here are some links that can help you:
If those donβt help, or if this issue is reporting something you think isnβt right, you can always ask the humans behind semantic-release.
An npm token must be created and set in the NPM_TOKEN
environment variable on your CI environment.
Please make sure to create an npm token and to set it in the NPM_TOKEN
environment variable on your CI environment. The token must allow to publish to the registry https://registry.npmjs.org/
.
Good luck with your project β¨
Your semantic-release bot π¦π
Hello,
I have recently made my own quazi-polyfill for BarcodeDetector. You can find it here: https://github.com/stefansundin/qr-detector.js. It only aims to implement the QR format.
While working on it and researching other packages, I started wondering why most other packages implemented their detection using web workers. In my limited testing I have not really seen a noticeable benefit when using web workers. I am wondering if there's a solid test that I can run to see the benefits? I would be very thankful for learning in what cases it makes a difference.
Furthermore, I think the fact that web workers are utilized should be very explicitly stated in this project's README. To be honest I think a polyfill shouldn't really add workers into the mix, because that's not something that BarcodeDetector requires you to use. I don't even think it is desirable since in my opinion it goes beyond the responsibilities of a polyfill.
Thanks for your time!
If somebody is looking for alternative solution I found one https://github.com/undecaf/barcode-detector-polyfill
Hello :)
Im using your vue3 qrcode reader for one of my applications... After the QR Reading Page is opened for a few minutes it is crashing with the error Cannot read properties of null (reading 'id')
, so I need to reload the page before Im able to scan more qr codes...
I looked for that error in the code and got into this repository. The exact location of the error is in your worker.ts file on line 52. I think a little check if event.data is null would solve that problem.
...is it possible to add that check?
Have a good one :)
Hi,
I see that this package is built with TypeScript, but does not ship with the types. @types/barcode-detector also does not exist. Would you consider publishing the types? Or, do you have any other recommendations?
TIA!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.