Skip to content

Latest commit

 

History

History
60 lines (36 loc) · 1.69 KB

README.md

File metadata and controls

60 lines (36 loc) · 1.69 KB

PDF Scanner

An application where one can scan an object and save in it '.jpg' and '.pdf' format.

Logic 🧠

  • 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.

Prerequisites 📋

You'll just need Git and Python installed on your computer.

Libraries Used 📁:

  • Open-CV
  • Numpy
  • img2pdf

How To Use 🔧:

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 Example 📷:

Scanned Images

Scanned PDF

Working of PDF Scanner - Watch Demo

Contributing ©️:

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.