projects
/
profile
/
ivi
/
automotive-message-broker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ced0402
)
fixed yellow light
author
Kevron Rees
<tripzero.kev@gmail.com>
Thu, 6 Nov 2014 01:26:08 +0000
(17:26 -0800)
committer
Kevron Rees
<tripzero.kev@gmail.com>
Thu, 6 Nov 2014 01:26:08 +0000
(17:26 -0800)
plugins/opencvlux/opencvluxplugin.cpp
patch
|
blob
|
history
diff --git
a/plugins/opencvlux/opencvluxplugin.cpp
b/plugins/opencvlux/opencvluxplugin.cpp
index
6c34045
..
46fa62e
100644
(file)
--- a/
plugins/opencvlux/opencvluxplugin.cpp
+++ b/
plugins/opencvlux/opencvluxplugin.cpp
@@
-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(...)