/Batch-crop-images

A tool for cropping similar images in a batch with an interface.

Primary LanguagePythonMIT LicenseMIT

Batch Image Crop Tool

A tool for cropping images in a batch with an interface.

Requirement

pip install -r requirements.txt
  • numpy
  • opencv-python

Usage

python main.py --input_path <YOUR_INPUT_DIR> --output_path <YOUR_OUTPUT_DIR>

And, it'll preview first one for cropping.

Example

  • Test images which need to be cropped
  • 1280 x 720 Demo input 1

  • 1280 x 720 Demo input 2

  • 1280 x 852 Demo input 3

  • Processing with mouse

Demo processing

  • Cropped result

Demo result 1

Demo result 2

Demo result 3

Reference

All test images are from Free-Photos.