Skip to content

A college project in Python using OpenCV, a simple app that takes an 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

3 Commits
 
 
 
 
 
 

Repository files navigation

Cam scanner

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

Content


Dependencies

  1. Python 3.7.0

The app could work with different versions, but this is the one that was tested.

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 needed 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

While:

  • path_input_img - path to your scanned image.
  • path_output_img - path to save the edited image, if none is provided it'll be displayed instead.

About

A college project in Python using OpenCV, a simple app that takes an 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