Skip to content

A college project in Python using OpenCV. A simple app that takes a photo of a paper and outputs an edited image with the paper properly aligned as though it was scanned.

License

Notifications You must be signed in to change notification settings

ElenaChes/python-image-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Image Scanner

A college project in Python using OpenCV.
A simple app that takes a photo of a paper and outputs an edited image with the paper properly aligned as though it was scanned.

Note

For a standalone version that doesn't require installing dependencies or using the command line, check out my Image Scanner - Standalone.

Content


Dependencies

  1. Python 3.7.0

The app may work with other versions, but this is the version that was used during development.

Installation

  1. Create a new directory, for example scanner, and place app.py inside of it.
  2. Open the directory in your terminal:
cd scanner
  1. Create a virtual environment:
python -m venv opencv-env
  1. Activate the environment :
.\opencv-env\Scripts\activate
  1. Install required packages:
pip install opencv-contrib-python matplotlib

Usage

  1. Run the app using the following syntax:
python app.py path_input_img path_output_img

Where:

  • path_input_img - path to your input image.
  • path_output_img - path to save the edited image. If none is provided, it will be displayed instead.

About

A college project in Python using OpenCV. A simple app that takes a photo of a paper and outputs an edited image with the paper properly aligned as though it was scanned.

Topics

Resources

License

Stars

Watchers

Forks

Languages