Skip to content

Commit

Permalink
Fix compilation older OCV
Browse files Browse the repository at this point in the history
  • Loading branch information
adujardin committed Oct 22, 2020
1 parent fc99bf0 commit 8a569b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions object detection/birds eye viewer/cpp/include/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ inline void drawVerticalLine(
int thickness) {
int n_steps = 7;
cv::Point2i pt1, pt4;
pt1 = ((n_steps - 1) * start_pt + end_pt) / n_steps;
pt4 = (start_pt + (n_steps - 1) * end_pt) / n_steps;
pt1.x = ((n_steps - 1) * start_pt.x + end_pt.x) / n_steps;
pt1.y = ((n_steps - 1) * start_pt.y + end_pt.y) / n_steps;

pt4.x = (start_pt.x + (n_steps - 1) * end_pt.x) / n_steps;
pt4.y = (start_pt.y + (n_steps - 1) * end_pt.y) / n_steps;

cv::line(left_display, start_pt, pt1, clr, thickness);
cv::line(left_display, pt4, end_pt, clr, thickness);
Expand Down

0 comments on commit 8a569b5

Please sign in to comment.