Color detection for threads / woods

bf1104:
Think I'd need to get same result every time I test the same sample.

I probably should have expanded on my question.

What level of error is acceptable when identifying a colour?

And do you want to be able to tell if two physically different samples are the same colour - for example a piece of fabric made from wool and a piece made from silk or polyester?

I suspect that you will need very careful control of the lighting conditions if you are to get consistent results.

Maybe the answer to a more general question would be useful - what is the purpose of identifying the colours and displaying the info on an LCD ?

...R