fixed yellow light
authorKevron Rees <tripzero.kev@gmail.com>
Thu, 6 Nov 2014 01:26:08 +0000 (17:26 -0800)
committerKevron Rees <tripzero.kev@gmail.com>
Thu, 6 Nov 2014 01:26:08 +0000 (17:26 -0800)
plugins/opencvlux/opencvluxplugin.cpp

index 6c34045..46fa62e 100644 (file)
@@ -666,7 +666,8 @@ TrafficLight::Color detectLight(cv::Mat img, OpenCvLuxPlugin::Shared *shared)
                        }
                        else if(avgPixel[0] > 128 && avgPixel[1] < 128 && avgPixel[2] < 128)
                        {
-                               DebugOut(1)<<"Bluel Light!!!"<<endl;
+                               DebugOut(1)<<"Yellow Light!!!"<<endl;
+                               return TrafficLight::Yellow;
                        }
                }
                catch(...)