https://github.com/serhaturtis/tool-fastbatchimagecrop
A simple UI tool to batch crop images to prepare datasets from images and videos.
https://github.com/serhaturtis/tool-fastbatchimagecrop
cropping-images dataset-generation extract-data gui image-classification machine-learning python stable-diffusion ui
Last synced: 7 days ago
JSON representation
A simple UI tool to batch crop images to prepare datasets from images and videos.
- Host: GitHub
- URL: https://github.com/serhaturtis/tool-fastbatchimagecrop
- Owner: serhaturtis
- License: mit
- Created: 2022-10-30T17:30:11.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-28T11:19:43.000Z (about 1 year ago)
- Last Synced: 2025-05-12T14:25:28.071Z (7 days ago)
- Topics: cropping-images, dataset-generation, extract-data, gui, image-classification, machine-learning, python, stable-diffusion, ui
- Language: Python
- Homepage:
- Size: 955 KB
- Stars: 27
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# TOOL-FastBatchImageCrop
A simple UI tool to batch crop images to prepare datasets.
## Features
- Crop images from videos and image folders with custom aspect ratios
- Resize cropped images automatically
- Extract frames from videos
- Crop iamges from videos while playing the video
- Save cropped images to different class folders
- Tag images to txt files while cropping## Usage
Install requirements (only pillow and opencv) with;
>pip install -r requirements.txt
Run with;
>python main.py
Select input folder, adjust crop rectangle size with mousewheel, click, repeat.
There are options to enter class names and image descriptions per crop. Class name creates seperate directories to save in the output folder and image descriptions create txt files with the same names per image.
Shortcut keys when cursor is on canvas;
- q: Rotate image CCW
- e: Rotate image CW
- r: Toggle roll to next image on crop
- space: Roll to next imageHack away.