Skip to content

Commit

Permalink
Merge pull request #2 from MayankD409/Iteration_2
Browse files Browse the repository at this point in the history
Add distance printing example
  • Loading branch information
lorocks authored Nov 1, 2023
2 parents c43afe3 + df5537e commit e1c2bc5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Binary file added Phase2.tar.xz
Binary file not shown.
Binary file added Phase2.zip
Binary file not shown.
5 changes: 5 additions & 0 deletions app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ int main() {
*
*/
for (const auto& r : tracker.obstacleMapVector) {
std::cout << "Obstacle " << r.first << " at point ("
<< static_cast<int>(std::get<0>(carDistance[r.first])) << ", "
<< static_cast<int>(std::get<1>(carDistance[r.first])) << ", "
<< static_cast<int>(std::get<2>(carDistance[r.first])) << ")"
<< std::endl;
cv::rectangle(frame, r.second, color, 4);
cv::putText(frame,
std::to_string(r.first) + ": (" +
Expand Down

0 comments on commit e1c2bc5

Please sign in to comment.