Skip to content

Commit b6ba188

Browse files
author
KhalilSelyan
committed
refactor(traffic_light_roi_visualizer): update color values for traffic light labels
Signed-off-by: KhalilSelyan <khalil@leodrive.ai>
1 parent 634da98 commit b6ba188

File tree

1 file changed

+4
-4
lines changed
  • perception/traffic_light_visualization/src/traffic_light_roi_visualizer

1 file changed

+4
-4
lines changed

perception/traffic_light_visualization/src/traffic_light_roi_visualizer/nodelet.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ bool TrafficLightRoiVisualizerNodelet::createRect(
9595
{
9696
cv::Scalar color;
9797
if (result.label.find("red") != std::string::npos) {
98-
color = cv::Scalar{255, 0, 0};
98+
color = cv::Scalar{254, 149, 149};
9999
} else if (result.label.find("yellow") != std::string::npos) {
100-
color = cv::Scalar{255, 255, 0};
100+
color = cv::Scalar{254, 250, 149};
101101
} else if (result.label.find("green") != std::string::npos) {
102-
color = cv::Scalar{0, 255, 0};
102+
color = cv::Scalar{149, 254, 161};
103103
} else {
104-
color = cv::Scalar{255, 255, 255};
104+
color = cv::Scalar{250, 250, 250};
105105
}
106106

107107
cv::rectangle(

0 commit comments

Comments
 (0)