Fixed console app on Linux

This commit is contained in:
AlexeyAB
2017-08-08 20:10:20 +03:00
parent 4528f9b4b4
commit 1a1c28227f

View File

@ -87,7 +87,8 @@ int main()
std::vector<bbox_t> result_vec, thread_result_vec;
detector.nms = 0.02; // comment it - if track_id is not required
std::thread td([]() {});
std::atomic<int> ready_flag = false;
std::atomic<int> ready_flag;
ready_flag = false;
cv::VideoCapture cap(filename);
for (; cap >> frame, cap.isOpened();) {
td.join();