/install image-cropper
Image Cropper
Crop images based on bounding box annotations. Supports COCO, YOLO, VOC, and LabelMe formats. Use when user needs to extract objects from images based on annotation boxes.
Features
- Multi-format Support: COCO, YOLO, VOC, LabelMe
- Batch Processing: Crop entire datasets
- Padding: Add padding around bounding boxes
- Output Options: Individual files or sprite sheet
- Handle Missing: Gracefully handle images without annotations
Usage
# Crop YOLO annotations
python scripts/cropper.py yolo images/ labels/ output/
# Crop COCO annotations
python scripts/cropper.py coco annotations.json images/ output/
# Crop with padding
python scripts/cropper.py yolo images/ labels/ output/ --padding 10
# Crop all objects to individual files
python scripts/cropper.py yolo images/ labels/ output/ --objects
Examples
$ python scripts/cropper.py yolo ./images ./labels ./output
Processing 100 images...
✓ Cropped 250 objects from image_001.jpg
✓ Cropped 180 objects from image_002.jpg
...
Total: 500 cropped images
Installation
pip install pillow
Options
--padding: Padding around box (pixels, default: 0)--objects: Save each object as separate file--min-size: Minimum box size to crop (pixels)--format: Output format (jpg, png, default: jpg)--quality: JPEG quality 1-100 (default: 95)
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install image-cropper - After installation, invoke the skill by name or use
/image-cropper - Provide required inputs per the skill's parameter spec and get structured output
What is Image Cropper?
Crop objects from images using bounding box annotations in COCO, YOLO, VOC, or LabelMe formats with optional padding and batch processing. It is an AI Agent Skill for Claude Code / OpenClaw, with 309 downloads so far.
How do I install Image Cropper?
Run "/install image-cropper" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Image Cropper free?
Yes, Image Cropper is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Image Cropper support?
Image Cropper is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Image Cropper?
It is built and maintained by Mingo_318 (@mingo-318); the current version is v1.0.0.