document_capture
v0.2.0
Published
Library lib: in this folder you have to put all your document capture code .
Downloads
5
Readme
Library lib: in this folder you have to put all your document capture code .
Run Because of Camera, You have to run this app in HTTPS mode and open computer firewall for the used port of the app (commonly 3000).
1. HTTPS:
Ref: Using HTTPS in Development
https://create-react-app.dev/docs/using-https-in-development/
In command prompt run: set HTTPS=true&&npm start
In power shell run:
- $env:HTTPS = "true"
- npm start
2. Open Firewall port 3000 (if you want to use it on a mobie phone)
Remote debugging on Android
1. Connect via USB your device to the laptop
2. Enable developer mode on device and enable usb debug
3. Open chrome on your device
4. Open chrome on your pc and type: chrome://inspect/#devices
5. You should now see the connected device, type this URL: https://192.168.1.166:3000/ where 192... is the ip address of your laptop
you should see chrome on your device loading the page
6. Type inspect in chrome on your laptop and debug it using the console on your laptop
Build
1. Generate Javascript and minify
npm run distribute --> dist/documentCapture.js
2. Ditribute --> Only give to the customer **dist/documentCapture.js** and id you want to enable typescript also **documentCapture.d.ts**
Reference http-server: https://www.npmjs.com/package/http-server server: https://www.npmjs.com/package/serve uglify-js: https://www.npmjs.com/package/uglify-js OpenCV: https://github.com/opencv/opencv