Color detection for threads / woods

Thanks for the replies.. I do appreciate them...

This all came about after the family were all together and couldn't agree on what colour some the threads were.. All very good natured arguments..

It just got me thinking... And thought it'd make a cool little project.

In regards to the comment regarding controlling the ambient light, that was the idea behind using a flap