Skip to content

An Application where one can scan an image and save it in '.jpg' format and can further convert it into '.pdf' format.

Notifications You must be signed in to change notification settings

ParagD25/Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An Application where one can scan an image and save it in '.jpg' format and can further convert it into '.pdf' format.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages