RepositoryGo
ES

esimov/caire

Content aware image resize library

10.9kstars
402forks
0issues
8views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: face-detection

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: content-aware-scaling

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: edge-detection

#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.

RepositoryC++
opencv/opencv

Open Source Computer Vision Library

91.8k
Nov 30, 2026
RepositoryPython
d2l-ai/d2l-zh

《动手学深度学习》:面向中文读者、能运行、可讨论。中英文版被70多个国家的500多所大学用于教学。

82.9k
Jul 30, 2024
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026
RepositoryGo
photoprism/photoprism

AI-Powered Photos App 🌈💎✨

40.5k
Dec 1, 2026
RepositoryGo
avelino/awesome-go

A curated list of awesome Go frameworks, libraries and software

197.2k
Dec 2, 2026
RepositoryGo
ollama/ollama

Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

188.9k
Dec 2, 2026
RepositoryJupyter Notebook
microsoft/AI-For-Beginners

12 Weeks, 24 Lessons, AI for All!

71.5k
Nov 15, 2026
RepositoryPython
ageitgey/face_recognition

The world's simplest facial recognition api for Python and the command line

56.9k
Jun 25, 2026
RepositoryPython
roboflow/supervision

We write your reusable computer vision tools. 💜

51.7k
Nov 27, 2026