pythonopencvcolor-detection

Detecting colors in an Image in sequence using opencv


I am working on a project where I need to recognize colors in sequential order from an Image

I am new to openCv. Help needed. Image here


Solution

  • since I think that you have to recognize colors inside the squares, not all colours in the image, you should first of all detect all squares.

    After that for each square it's so easy to recognize the colour since you can have the pixel value information in different color spaces (rgb, hsv and so on).

    I can suggest you to read tutorials that you can find in the official documentation before to start, they can be really useful.