Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.35 KB

README.md

File metadata and controls

33 lines (22 loc) · 1.35 KB

It is a simple OpenCV based program which sends image from your phone to your PC, scans it and creates a pdf. It uses IP Webcam application to connect your phone camera to your PC. It is available here .


Before using this you need to change the url in the Scanner.py with your camera url.

url = 'Your camera IP/video' 

To run the program

python3 Scanner.py your_pdf_name.pdf 

To apply perspective transform the document in your image should have clear four edges. If the four edges are not detected properly in your document, scan effect is applied to your whole image without any perspective transform.


Optional arguments can be passed to turn off the perspective transform, scan effect and orientation.

python3 Scanner.py your_pdf_name.pdf --o y --ps n 

Required Libraries:

Space bar is used to take image(multiple images can be taken) and we can press 'q' to terminate the program.