Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/NatLee/Batch-crop-images
- Owner: NatLee
- License: mit
- Created: 2019-12-24T05:55:06.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-09-14T02:57:04.000Z (about 1 year ago)
- Last Synced: 2024-06-28T05:36:50.491Z (5 months ago)
- Topics: crop-image, opencv-python, python, python3, tool
- Language: Python
- Homepage:
- Size: 4.03 MB
- Stars: 73
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).