Skip to content

Explore the fascinating world of color detection with this Python repository! Whether you are a beginner or an experienced developer, this project provides a comprehensive guide and implementation for detecting colors in images using Python.

Notifications You must be signed in to change notification settings

ShashankS1011/Color-Detection-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Color Detection in Images

This GitHub repository contains the source code and resources for a Python project that performs color detection in images. Detecting colors in images is a fundamental task in computer vision and has various applications, including image processing, object recognition, and more. This project aims to provide a simple yet comprehensive tool for color analysis in images.

Introduction

Color detection in images involves identifying and extracting specific colors or color ranges from an image. In this project, we utilize the Python programming language and popular libraries like OpenCV and NumPy to perform color detection. The primary objectives of this project are:

  1. Color Recognition: Identify and recognize predefined colors or user-specified color ranges in an image.
  2. Visualization: Provide visual representations of the detected colors, such as color histograms, masks, and color filtering.
  3. Image Analysis: Offer insights into the color distribution within an image, including the percentage of each color present.

Prerequisites

Before using the code in this repository, ensure that you have the following prerequisites installed:

  • Python 3.6+
  • OpenCV (cv2) library
  • NumPy library

You can install the required libraries using pip:

  • "pip install opencv-python numpy"

Use this command to run the program: python color_detection.py -i "Image path".

Usage

  • The dataset folder contains the dataset and some sample images to work on.
  • Code folder contains the python file.
  • Model folder contains the Random Forest impplementation on the data.

About

Explore the fascinating world of color detection with this Python repository! Whether you are a beginner or an experienced developer, this project provides a comprehensive guide and implementation for detecting colors in images using Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published