Experiment with barcode detection https://lewismoten.github.io/Barcode-Detection/
  • JavaScript 88.8%
  • CSS 6%
  • HTML 5.2%
Find a file
2024-05-20 02:26:14 -04:00
.gitignore setup barcode detection page 2024-05-18 18:41:21 -04:00
BarcodeDetectorPolyfill.js fixes 2024-05-20 02:26:14 -04:00
blobby.js detect undefined images 2024-05-19 20:45:18 -04:00
index.html scale down to 200 2024-05-20 01:43:09 -04:00
index.js fixes 2024-05-20 02:26:14 -04:00
README.md setup barcode detection page 2024-05-18 18:41:21 -04:00
server.js make it look like a mobile web app 2024-05-19 02:57:39 -04:00
stateManager.js add index db 2024-05-19 04:47:31 -04:00
style.css make it square 2024-05-20 00:28:10 -04:00
unwarpClipAsURL.js add index db 2024-05-19 04:47:31 -04:00

Barcode Detection

Local Dev

You'll need to run Run a web server in the local directory with a signed certificate. Here is an example for PHP.

Create a self-signed certificate

openssl req -x509 -out localhost.crt -keyout localhost.key \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=localhost' -extensions EXT -config <( \
	printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

Host the web server with SSL

node ./server.js

Open your browser and go to https://localhost:8000