One of this years challenges is to detect some coloured balls from a distance and visit them.
The full details are here. http://piwars.org/2018-competition/challenges/somewhere-over-the-rainbow/
For our robot we are using a Raspberry Pi Camera and OpenCV to detect the colours and some code written in C++.
You can see a video of our robot doing some colour detection below.
Whilst testing this we have come unstuck with the detection when it is dark or when somebody (Vince) in a very red coat walks into the frame of the camera and it detects him and not the ball.
We are planning on using a 2 times lens to bring the balls into a better focus.