From 9c1b9a2cf6363546c152251be578a21f3c3caec6 Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Sat, 5 Aug 2017 02:08:11 +0300 Subject: [PATCH] Added the ability to detect on multiple images using SO/DLL --- src/yolo_console_dll.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/yolo_console_dll.cpp b/src/yolo_console_dll.cpp index e70f1deb..7cc82cc2 100644 --- a/src/yolo_console_dll.cpp +++ b/src/yolo_console_dll.cpp @@ -97,7 +97,11 @@ int main() else for (std::string line; file >> line;) { std::cout << line << std::endl; - show_result(detector.detect(cv::imread(line)), obj_names); + cv::Mat mat_img = cv::imread(line); + std::vector result_vec = detector.detect(mat_img); + show_result(result_vec, obj_names); + //draw_boxes(mat_img, result_vec, obj_names); + //cv::imwrite("res_" + line, mat_img); } }