# Colour Recognition

**URL:** <https://forum.core-electronics.com.au/t/colour-recognition/3235>\
**Category:** Raspberry Pi\
**Created:** [10 August 2018 21:21 UTC](https://forum.core-electronics.com.au/t/colour-recognition/3235 "2018-08-10T21:21:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony54551](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@Tony54551](https://forum.core-electronics.com.au/u/Tony54551)\
**Post date:** [10 August 2018 21:21 UTC](https://forum.core-electronics.com.au/t/colour-recognition/3235/1 "2018-08-10T21:21:30Z")

</div>

Good Morning,

I want to be able to attach a camera to my raspberry pi, and point it at a wall or single colour surface. I want it to be able to read the colour, and break it down into three rgb values. I would also like to get a value of its brightness too.

Is this possible ?

Regards  
Tony

---

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/stephen/32/1599_2.png) [@Stephen](https://forum.core-electronics.com.au/u/Stephen)\
**Post date:** [13 August 2018 00:00 UTC](https://forum.core-electronics.com.au/t/colour-recognition/3235/2 "2018-08-13T00:00:45Z")

</div>

Hi Tony,

This is completely possible! There are a lot of people out there doing and sharing the same thing. Here are some links to pages where the How-To’s of making it work are discussed:  
[https://www.raspberrypi.org/forums/viewtopic.php?t=90540](https://www.raspberrypi.org/forums/viewtopic.php?t=90540)

> **[OpenCV Color Detection and Filtering with Python - bluetin.io](https://www.bluetin.io/opencv/opencv-color-detection-filtering-python/)**
>
> OpenCV color detection and filtering is an excellent place to start OpenCV Python development. I introduce a basic Python program to get started with OpenCV

In this one they use a color sensor, this would be the easiest way to achieve your results:

> **[Colour sensing with a Raspberry Pi - Raspberry Pi](https://www.raspberrypi.org/blog/colour-sensing-raspberry-pi/)**
>
> With this simple video tutorial from Electronics Hub, you can add colour sensing to your Raspberry Pi project and reach the next level of awesome with your builds.
