From 181ac4dfe32047d8a7e2088c0b4f394a7ba15849 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Thu, 25 Jan 2018 15:28:26 +0000
Subject: [PATCH] Fixed compile error

---
 src/yolo_console_dll.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/yolo_console_dll.cpp b/src/yolo_console_dll.cpp
index 50dee7e..1e9ba98 100644
--- a/src/yolo_console_dll.cpp
+++ b/src/yolo_console_dll.cpp
@@ -213,7 +213,6 @@
 	Tracker_optflow tracker_flow;
 	detector.wait_stream = true;
 #endif
-	preview_boxes_t large_preview(100, 150, false), small_preview(50, 50, true);
 
 	while (true) 
 	{		
@@ -223,6 +222,8 @@
 		
 		try {
 #ifdef OPENCV
+			preview_boxes_t large_preview(100, 150, false), small_preview(50, 50, true);
+
 			std::string const file_ext = filename.substr(filename.find_last_of(".") + 1);
 			std::string const protocol = filename.substr(0, 7);
 			if (file_ext == "avi" || file_ext == "mp4" || file_ext == "mjpg" || file_ext == "mov" || 	// video file

--
Gitblit v1.10.0