origin
This commit is contained in:
parent
4dcef424ec
commit
cef0644af5
@ -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.两条线粘连)
|
||||
|
BIN
build/YOLOPv2.o
BIN
build/YOLOPv2.o
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user