Utility to read, via browser camera, brazilian-banking barcode.
npm install --save react-boleto-reader
Use this component with smart devices, witch probably have high quality cameras.
The project was built with React Hooks features, requiring versions starting from 16.8.x
.
Browser camera only will be available to use if:
- The device have a camera (KKK, sorry);
- Your application is running over HTTPS
To apps initializeds by create-react-app
, this should works:
HTTPS=true npm start
Examples at this codesandbox.
Sorry.
I dedicated about 32 hours to do this package, without any previous plan and idea, only with some inspirations. Running to delivery another company project, who is the principal and much biggier.
So, if you have any suggestions, or be comfortable to code some improvements, feel free to do so.
All the awesome projects which made this other one possible:
- Quagga
- Quagga2 by @ericblade
- Broleto (vaaaaaaaai Brasil, corooooi)
- This functional example by @saraiva1989 (valeu, meu considerado)
- Create React Library
- DinoSoftLabs by icon used on example page
MIT © udimberto