Use OpenCV-Python and Flask to create a web document scanner with a camera.
Install Flask:
pip install flask
Open camera.py and select a device:
self.cap = cv2.VideoCapture(2) # It should be 0 if you have only one device.
Run the app:
python35 server.py