chp3 ColorDetector
单例模式的controller