From 09c7d8f80d68ee5ed61bbebe7755012e2714af59 Mon Sep 17 00:00:00 2001 From: ChenJun <57067221+sink0918@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:25:51 +0800 Subject: [PATCH] function imwrite should be outside of the for loop (#4786) --- deploy/third_engine/demo_openvino/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/third_engine/demo_openvino/main.cpp b/deploy/third_engine/demo_openvino/main.cpp index 6833a305b..b96a618fd 100644 --- a/deploy/third_engine/demo_openvino/main.cpp +++ b/deploy/third_engine/demo_openvino/main.cpp @@ -217,8 +217,9 @@ void draw_bboxes(const cv::Mat& bgr, const std::vector& 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); } -- GitLab