Git Product home page Git Product logo

huehunter's Introduction

HueHunter

๐ŸŽจ HueHunter: A command-line tool for quickly identifying and naming dominant colors in digital images. ๐ŸŒˆ

Features

  • Detects dominant colors in an image using KMeans clustering.
  • Maps detected colors to the nearest CSS3 color names for easy reference.
  • Simple command-line interface for straightforward usage.

Installation

Before installing HueHunter, ensure you have Python installed on your system. HueHunter works best with Python 3.6 or newer.

To install HueHunter directly from the source:

  1. First, clone the repository:
    git clone https://github.com/txhno/huehunter.git
  2. Navigate to the huehunter directory:
    cd huehunter
  3. Install the package:
    pip install .

This series of commands will download the HueHunter source, move you into the HueHunter project directory, and install HueHunter along with its dependencies directly from the source code. This method is particularly useful if you plan to modify the code or contribute to the project.

Dependencies

HueHunter relies on several third-party libraries:

  • OpenCV-Python: For image processing.
  • Pillow: For image manipulation tasks.
  • numpy: For numerical operations.
  • scikit-learn: For performing KMeans clustering to determine dominant colors.
  • webcolors: For converting RGB values to human-readable color names.

These dependencies are automatically installed when you install HueHunter via pip.

Usage

Once installed, you can run HueHunter directly from your terminal. To analyze an image and print out its dominant colors, use the following syntax:

huehunter path/to/your/image.jpg

Example

huehunter example.jpg

Output:

Image Name: example.jpg
Detected Colors: silver, darkslategray, dimgray

This output tells you the image name and lists the dominant colors detected in the image.

Contributing

Contributions to HueHunter are welcome! If you have suggestions for improvements or new features, feel free to fork the repository, make your changes, and submit a pull request.

License

HueHunter is open-sourced under the MIT license. See the LICENSE file for more details.

Contact

For support or to contact the developers, please send an email to [[email protected]].

Thank you for using HueHunter!

huehunter's People

Contributors

txhno avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.