Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/NatLee/Batch-crop-images

A tool for cropping similar images in a batch with an interface.
https://github.com/NatLee/Batch-crop-images

crop-image opencv-python python python3 tool

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Batch Image Crop Tool

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

## Requirement

```bash
pip install -r requirements.txt
```

- numpy
- opencv-python

## Usage

```bash
python main.py --input_path --output_path
```

And, it'll preview first one for cropping.

## Example

* Test images which need to be cropped

- 1280 x 720
![Demo input 1](./img/input/1.jpg)

- 1280 x 720
![Demo input 2](./img/input/2.jpg)

- 1280 x 852
![Demo input 3](./img/input/3.jpg)

* Processing with mouse

![Demo processing](./img/processing.png)

* Cropped result

![Demo result 1](./img/result/1.jpg)

![Demo result 2](./img/result/2.jpg)

![Demo result 3](./img/result/3.jpg)

# Reference

All test images are from [Free-Photos](https://pixabay.com/users/free-photos-242387).