Skip to content

Commit 2ac8b56

Browse files
author
KhalilSelyan
committed
refactor(traffic_light_roi_visualizer): adjust shape dimensions and font style
Signed-off-by: KhalilSelyan <khalil@leodrive.ai>
1 parent b6ba188 commit 2ac8b56

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

perception/traffic_light_visualization/src/traffic_light_roi_visualizer/shape_draw.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void drawShape(
6161
params.image,
6262
cv::Rect(
6363
// width should take into account the text width
64-
position.x - 2, position.y - 5, shapeImg.cols + 47, shapeImg.rows + 5),
64+
position.x - 2, position.y - 5, shapeImg.cols + 70, shapeImg.rows + 12),
6565
params.color,
6666
-1); // Filled rectangle
6767

@@ -82,7 +82,7 @@ void drawShape(
8282
cv::putText(
8383
params.image, std::to_string(static_cast<int>(round(params.probability * 100))) + "%",
8484
cv::Point(position.x + shapeImg.cols + 5, position.y + shapeImg.rows / 2 + 5),
85-
cv::FONT_HERSHEY_COMPLEX, 0.45, cv::Scalar(0, 0, 0), 2);
85+
cv::FONT_HERSHEY_SIMPLEX, 0.7, cv::Scalar(0, 0, 0), 2, cv::LINE_AA);
8686
}
8787

8888
void drawCircle(const DrawFunctionParams & params)

0 commit comments

Comments
 (0)