contour.cpp can detect blue, green and yellow individually