/python-opencv-crop

Crop images using contrast to background

Primary LanguagePython

python-opencv-crop

Using OpenCV 3.3 and Python 3 to automatically crop sheets inside images for later archiving them inside a PDF.

Getting started

  • Clone repository
  • Create virtual environment virtualenv -p /usr/local/bin/python3 venv
  • Source virtual environment source venv/bin/activate
  • Install requirements pip install -r requirements.txt
  • Run script ./crop.py

Readings

Inspired from

Rotation

Learning