This commit is contained in:
wuxianfu 2025-04-06 22:45:12 +08:00
parent 4dcef424ec
commit cef0644af5
6 changed files with 4 additions and 4 deletions

View File

@ -269,9 +269,9 @@ Mat YOLOPv2::detect(Mat& frame)
if (left > -1 && right > -1) {
int mid = (left + right) / 2;
for (int k = -5; k <= 5; k++) {
outimg.at<Vec3b>(i, mid+k)[0] = 255;
outimg.at<Vec3b>(i, mid+k)[1] = 255;
outimg.at<Vec3b>(i, mid+k)[2] = 0;
outimg.at<Vec3b>(i, mid+k)[0] = 0;
outimg.at<Vec3b>(i, mid+k)[1] = 0;
outimg.at<Vec3b>(i, mid+k)[2] = 255;
}
}
//(需要考虑的问题 1.双车道3条线 2.拐角处曲线 3.近处显示不全 4.两条线粘连)

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -59,7 +59,7 @@ void MainWindow::ShowVideo()
static const string kWinName = "Deep learning object detection in ONNXRuntime";
namedWindow(kWinName, WINDOW_NORMAL);
cv::VideoCapture cap("/home/wuxianfu/Projects/Fast-YolopV2/build/videos/566a351c29c00924a337e91e85fa7dec.mp4");
cv::VideoCapture cap("/home/wuxianfu/Projects/Fast-YolopV2/build/videos/test1.mp4");
if (!cap.isOpened()) {
std::cerr << "Error opening video stream" << std::endl;
return;