Giter Club home page Giter Club logo

detect-color-opencv's Introduction

detect-color-opencv

Virtual Env commands

  • Creating
python -m venv venv
  • Activating
venv\Scripts\activate.bat
  • Listing
pip list
  • Saving
pip freeze > requirements.txt
  • Restoring
pip install -r requirements.txt
  • Deactivating
deactivate
  • In some cases,it is more convenient to shift from BGR to HSV colorspace depending on the usecase i.e. what we want to do with the images.
  • Below is an image of how an HSV colorspace looks like.

image

  • We'll be mostly be utilizing the Hue channel to differentiate between colors.
  • Below is the top-view of the HSV colorspace cylinder

image

  • To tell our program to detect all pixels from a given color, we have to give it the whole region as reference containing that color.
  • For example, If we take the color yellow, below is the region that we have to specify to the program to recognize as yellow.
  • To define the interval, we have to specify two values marking the beginning and end of the region. This will be done using the cv2.inRange() function.
  • To make the work easier, we will be utilizing the get_limits() function from util.py file defined by us.

image

detect-color-opencv's People

Contributors

cj445 avatar

Watchers

Kostas Georgiou avatar  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.