资讯

You can throw a Raspberry Pi camera and OpenCV at the problem and approach it through software, or you can buy an off-the-shelf RGB sensor and wire it up to an Arduino.
Off the shelf RGB colour pickers allowing you to extract and objects RGB values can range from a few hundred dollars to thousands depending on your needs.