From e11430970b5470fb92127901454a1c90e5cc45e4 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Thu, 25 Jan 2018 16:04:06 +0000
Subject: [PATCH] Fixed compile error
---
src/yolo_console_dll.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/yolo_console_dll.cpp b/src/yolo_console_dll.cpp
index 50dee7e..6ec1520 100644
--- a/src/yolo_console_dll.cpp
+++ b/src/yolo_console_dll.cpp
@@ -56,7 +56,7 @@
preview_box_track_t() : track_id(0), obj_id(0), last_showed_frames_ago(frames_history) {}
};
std::vector<preview_box_track_t> preview_box_track_id;
- size_t const preview_box_size, const bottom_offset;
+ size_t const preview_box_size, bottom_offset;
bool const one_off_detections;
public:
preview_boxes_t(size_t _preview_box_size = 100, size_t _bottom_offset = 100, bool _one_off_detections = false) :
@@ -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