Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahkohd/average_color

🎇 Get the average color of an image
https://github.com/ahkohd/average_color

image-processing rust rust-lang tokio-rs

Last synced: 3 months ago
JSON representation

🎇 Get the average color of an image

Awesome Lists containing this project

README

        

# average_color

A simple image average color extractor written in 🦀 Rust

[![Rust](https://github.com/ahkohd/average_color/actions/workflows/rust.yml/badge.svg)](https://github.com/ahkohd/average_color/actions/workflows/rust.yml)

---

## 🔧 Usage

```rust
use average_color;
use tokio;

#[tokio::main]
fn main() {
let paths = ["~/test1.png", "~/test2.png"];
let results = average_color::get_averages_colors(&paths).await;
println!("results: {:?}", results);
}
```

## 📖 Docs

- [API reference (docs.rs)](https://docs.rs/average_color/)