An application where one can scan an object and save in it '.jpg' and '.pdf' format.
-
When we place an object under the webcam, edges are been detected using canny edge detection and further we can find the largest contours present in the image.
-
After finding contours we use warp perspective to show case the scanned area.
-
Used img2pdf library, to convert the images into pdf.
You'll just need Git and Python installed on your computer.
- Open-CV
- Numpy
- img2pdf
From your command line, first clone this repo:
# Clone this repository
$ git clone https://github.com/ParagD25/Scanner/
# Go into the repository
$ cd Scanner
# Remove current origin repository
$ git remote remove origin
# Create new virtual python environment
$ python3 -m venv venv
# Activate virtual python environment
$ source venv/bin/activate
# Install all the libraries/frameworks mentioned above
# Run Python file
$ "python scanner.py"
Working of PDF Scanner - Watch Demo
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.