Giter VIP home page Giter VIP logo

color-detection-application's Introduction

Color Detection Application

A python application through which you can automatically get the name and R,G,B values of a color in an image by clicking on the color with your mouse.

Table of contents

General info

Color detection is the process of identifying the name of any color. Color detection is important in identifying objects. Various image editing and drawing apps also use it as a tool.

In this project, we built an application which accepts an image path and automatically get the name and R, G, B values of the colors in the image when the user presses left or right mouse buttons on the image. The application has a remote database that allows users to update the colors dataset with custom colors. The application gets the updated color dataset from the remote database which contains the color names and its values, it then calculates the distance from each color and finds the closest one.

Remote Color Database

  • A user can see the list of the colors in the database.

  • A user can add a new color to the database.

  • A user can delete a color from the database.

  • The user can visit the link below to view, add and delete colors:

    Remote Color Database

Screenshots

Running program

cmd

Sample Output 1

output1

Sample Output 2

output2

Sample Output 3

output3

Sample Output 4

output4

Features

  • A remote database to allow users to add custom colors, delete, view and download colors.
  • Detect colors by clicking on the color in an image with your mouse
  • Get color name
  • Get RGB values of colors

Technologies

Setup

To run this app, you will need to follow these 4 steps:

1. Requirements

  • a Computer

  • Text Editor or IDE (eg. vscode, PyCharm)

  • Git installed on your Laptop.

  • Command line (CMD)

2. Install Python and Pipenv

3. Local Setup and Running on Windows, Linux and Mac OS


# Clone this repository into the directory of your choice
$ git clone https://github.com/Williano/Color-Detection-Application.git

# Move into project folder
$ cd Color-Detection-Application

# Install from Pipfile
$ pipenv install

# Activate the Pipenv shell
$ pipenv shell

# Run application
(Color-Detection-Application-XXXX) $ python color_detector.py -i <add your image path here>

Example: python src/color_detector.py -i images/pietro-de-grandi.jpg


4. Testing application

  • Click on any part of the image to get the color name and RGB value

Status

Project is: done

Inspiration

This project was for my multimedia class for my MSc. Computer Science degree.

Contact

Created by Williano - feel free to contact me!

License

You can check out the full license here

This project is licensed under the terms of the MIT license.

Contributing

  1. Fork it (https://github.com/Williano/Color-Detection-Application.git)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

color-detection-application's People

Contributors

williano avatar

Watchers

 avatar  avatar

Forkers

barbara99

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.