kmeans_dominant_colors 0.1.7 copy "kmeans_dominant_colors: ^0.1.7" to clipboard
kmeans_dominant_colors: ^0.1.7 copied to clipboard

A Flutter package to extract dominant colors from images using K-means clustering algorithm. Perfect for generating color palettes, theme suggestions, and image analysis.

Dominant Colors #

A Flutter package for extracting dominant colors from images using K-means clustering algorithm.

Demo

Features #

  • 🎨 Extract dominant colors from any image
  • ⚡ High-performance implementation with image resizing
  • 📊 Get detailed cluster information (pixel count, percentages)
  • 🎯 Configurable color count and algorithm parameters
  • 🔄 K-means++ initialization for better results
  • 🎪 Returns colors sorted by dominance
  • 📱 Flutter-optimized and null-safe

Installation #

Add this to your pubspec.yaml:

dependencies:
  kmeans_dominant_colors:
    git:
      url: https://github.com/Mouhib777/kmeans_dominant_colors# kmeans_dominant_colors
5
likes
150
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to extract dominant colors from images using K-means clustering algorithm. Perfect for generating color palettes, theme suggestions, and image analysis.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, image

More

Packages that depend on kmeans_dominant_colors