Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ahkohd/average_color
- Owner: ahkohd
- Created: 2021-09-12T21:11:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T22:32:59.000Z (4 months ago)
- Last Synced: 2024-10-03T08:28:20.206Z (3 months ago)
- Topics: image-processing, rust, rust-lang, tokio-rs
- Language: Rust
- Homepage: https://crates.io/crates/average_color
- Size: 116 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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/)