schmich / instascan

HTML5 QR code scanner using your webcam
https://schmich.github.io/instascan/
MIT License
2.97k stars 865 forks source link

Add support for scanning other formats #61

Open schmich opened 7 years ago

schmich commented 7 years ago
foaadnami commented 7 years ago

+MRZ https://en.wikipedia.org/wiki/Machine-readable_passport

sebastianvz commented 6 years ago

hello. I am very new.

I would like to use instascan, but i have a little problem. I don't know how can use the ".js - scanner.js - camara.js" separately because i am using instscan.min.js but i need to change the line that one people write in the issue #59 but i don't know how can change the line. I am using a MVC project in c#.

I need to read barcode and i would like to test it with the change in that line.

ptitvincou commented 6 years ago

Hello,

This project is awesome. I am in the same situation than Sebastianvz. how can we use scanner.js to add other formats. @mairh can you help us ?

elecnix commented 4 years ago

I was able to get barcode scanning working using a zxing.js built from Xiao Ling's fork of zxing-cpp-emscripten, which adds 1D barcode support:

https://github.com/yushulx/zxing-cpp-emscripten/commit/bb7cf4ff00903c796677f348323f43bcde9a12f4

I compiled it with emsdk and the provided instructions, then copied the produced build-js/zxing.js over instascan/src/zxing.js, and then ran gulp build.

Tested on Chrome/Linux and Android.