Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuzhny007 committed Aug 10, 2023
2 parents 2cefea9 + abc6d85 commit 2930733
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Last changes

* YOLOv8 detextor worked with TensorRT! Export pretrained Pytorch models [here (ultralytics/ultralytics)](https://github.com/ultralytics/ultralytics) to onnx format and run Multitarget-tracker with -e=6 example
* YOLOv8 detector worked with TensorRT! Export pretrained Pytorch models [here (ultralytics/ultralytics)](https://github.com/ultralytics/ultralytics) to onnx format and run Multitarget-tracker with -e=6 example

* Some experiments with YOLOv7_mask and results with rotated rectangles: detector works tracker in progress

Expand Down
Binary file added data/map/manual/france_bind.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/map/manual/paint1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/map/manual/photo_2023-08-10_09-44-05.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/map/manual/text_editor1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions example/CarsCounting.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,16 @@ class GeoParams
cv::Point_<T> gp2(m_geoPoints[(i + 1) % m_geoPoints.size()]);
cv::Point p2(m_p2mParams.Geo2Pix(gp2));

cv::line(map, p1, p2, cv::Scalar(255, 255, 255), 1, cv::LINE_AA);
cv::line(map, p1, p2, cv::Scalar(255, 255, 255), 2, cv::LINE_AA);

//std::cout << p1 << " - " << p2 << std::endl;

std::stringstream label;
label << std::fixed << std::setw(5) << std::setprecision(5) << "[" << m_geoPoints[i].x << ", " << m_geoPoints[i].y << "]";
int baseLine = 0;
double fontScale = 0.5;
cv::Size labelSize = cv::getTextSize(label.str(), cv::FONT_HERSHEY_SIMPLEX, fontScale, 1, &baseLine);
cv::putText(map, label.str(), p1, cv::FONT_HERSHEY_SIMPLEX, fontScale, cv::Scalar(255, 255, 255));
double fontScale = (map.cols < 1000 && map.rows < 1000) ? 0.5 : 1.;
cv::Size labelSize = cv::getTextSize(label.str(), cv::FONT_HERSHEY_TRIPLEX, fontScale, 1, &baseLine);
cv::putText(map, label.str(), p1, cv::FONT_HERSHEY_TRIPLEX, fontScale, cv::Scalar(255, 255, 255));
}
#endif

Expand All @@ -189,7 +189,7 @@ class GeoParams
auto center = m_p2mParams.Geo2Pix(geoCenter);
//std::cout << "Convert: " << track.m_rrect.center << " -> " << geoCenter << " -> " << center << std::endl;
if (center.x > 0 && center.x < map.cols && center.y > 0 && center.y < map.rows)
cv::ellipse(map, center, cv::Size(3, 3), 0, 0, 360, cv::Scalar(255, 0, 255), cv::FILLED, 8);
cv::ellipse(map, center, cv::Size(5, 5), 0, 0, 360, cv::Scalar(255, 0, 255), cv::FILLED, 8);
}
}

Expand Down

0 comments on commit 2930733

Please sign in to comment.