I created a system for inspecting components on a circuit board for a previous customer. I could help you set yours up if you are interested.
When you use a color camera, the NI board will convert the image to HSL, which makes it fairly easy to read color codes.
Bruce
Bruce Ammons
Ammons Engineering