未验证 提交 09c7d8f8 编写于 作者: C ChenJun 提交者: GitHub

function imwrite should be outside of the for loop (#4786)

上级 42d12ea7
......@@ -217,8 +217,9 @@ void draw_bboxes(const cv::Mat& bgr, const std::vector<BoxInfo>& bboxes, object_
cv::putText(image, text, cv::Point(x, y + label_size.height),
cv::FONT_HERSHEY_SIMPLEX, 0.4, cv::Scalar(255, 255, 255));
cv::imwrite("../predict.jpg",image);
}
cv::imwrite("../predict.jpg",image);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册