Skip to content

Commit

Permalink
refactor(traffic_light_roi_visualizer): update color values for traff…
Browse files Browse the repository at this point in the history
…ic light labels

Signed-off-by: KhalilSelyan <[email protected]>
  • Loading branch information
KhalilSelyan committed May 27, 2024
1 parent 634da98 commit b6ba188
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ bool TrafficLightRoiVisualizerNodelet::createRect(
{
cv::Scalar color;
if (result.label.find("red") != std::string::npos) {
color = cv::Scalar{255, 0, 0};
color = cv::Scalar{254, 149, 149};
} else if (result.label.find("yellow") != std::string::npos) {
color = cv::Scalar{255, 255, 0};
color = cv::Scalar{254, 250, 149};
} else if (result.label.find("green") != std::string::npos) {
color = cv::Scalar{0, 255, 0};
color = cv::Scalar{149, 254, 161};
} else {
color = cv::Scalar{255, 255, 255};
color = cv::Scalar{250, 250, 250};
}

cv::rectangle(
Expand Down

0 comments on commit b6ba188

Please sign in to comment.