esimov/caire
Content aware image resize library
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tuần
#1 Repository Của Tuần
#1 Repository Của Tuần
🖼️ Smart Image Resizing with Seam Carving in Go
Caire resizes images intelligently by removing or adding pixels along low-energy seams, preserving important content like faces.
Caire is a content-aware image resize library written in Go, based on the Seam Carving for Content-Aware Image Resizing paper. It analyzes image content to detect edges and important regions, then selectively removes or adds pixels along the least visually significant paths. The library supports face detection via Pigo to protect human faces during resizing, and offers both CLI and GUI modes for interactive use. It can process images recursively, support stdin/stdout piping, and handle multiple output formats.
✨ Highlights
- Content-aware resizing: Uses seam carving algorithm to preserve visually important areas.
- Face detection: Integrates Pigo library to avoid deforming human faces during resize.
- GUI progress indicator: Visualizes the resizing process in real-time.
- Command-line support: Fully customizable CLI flags for flexible resizing workflows.
- Shrinking and enlarging: Supports both reducing and increasing image dimensions.
- Recursive directory processing: Handles entire folders of images concurrently.
- Multiple output formats: Supports JPG, PNG, BMP, and JPEG outputs.
- Protective and removal masks: Allows manual control over which regions to preserve or remove.
💡 Why it matters
Unlike traditional resizing methods that scale the entire image uniformly, Caire intelligently removes or adds pixels along seams with the lowest energy, preserving key visual content. This makes it especially useful for resizing photos where maintaining composition and subject integrity is critical. With face detection and mask support, it provides fine-grained control over the resizing process, making it a powerful tool for developers and designers working with image content.
#Go #ImageProcessing #SeamCarving #FaceDetection #ContentAwareResize #TiniX
Similar Projects
Discover other similar projects and AI models.
Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
The world's simplest facial recognition api for Python and the command line