smc8050 / Dias_Autocrop

This python script enables automatic cropping of black borders from dia-photograohs which are digitised.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dias Autocrop

This python script enables automatic cropping of black borders from dia-images which are fotographed with a digital camera. Some samples can be found in the Sample_images folder.

Usage

In the main.py specify the input directory where the files to be cropped are located and the output directory, where the cropped files will be saved. To start the batch just run the main file in the same folder with the utils.py module.

Dependencies

This script depends on the Pillow and opencv-python package, to install them use following commands:

pip install Pillow

pip install opencv-python

Remark

If this script does not work for your files or you need the ability to automatically rotate and/or transform your images please check out this python script from z80z80z80 which does exactly that.

About

This python script enables automatic cropping of black borders from dia-photograohs which are digitised.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%