Simple and slow QR code reader in hand-crafted, artisanal JS.
Tested only on Chrome, and only barely.
Check it out in action here .
QR code reader in JS.
Simple and slow QR code reader in hand-crafted, artisanal JS.
Tested only on Chrome, and only barely.
Check it out in action here .
Parsing a QR code from a 640x480 image takes ~250 milliseconds on a beefy laptop.
This is clearly wrong and I have no idea where time is spent.
It compares every pixel to its local neighborhood of a constant size. Thus, if the module size is larger than that, it will fail (because a module is full-black or full-white).
Was surprising to learn that a perfectly aligned, crisp, black-and-white QR code image cannot be scanned for this reason.
One solution would be to run binarize after the finder patterns were found and use only the pixels in the run being checked for the black/and white decision during pattern finding. However, it would make things even slower.
Shouldn't be too hard to do something about it. The code is in geom.js
in fitLine
.
This causes problems with large QR codes where modules are small enough that e.g .barrel distortion becomes significant.
This is why hugeflat
cannot be scanned at the moment.
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.