From 1653cee236cb7ffd1ea94ef0854e2253cba3201b Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Fri, 15 May 2015 05:38:53 -0400 Subject: [PATCH] Changed method so that it does not require C++11 --- src/openalpr/motiondetector.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/openalpr/motiondetector.cpp b/src/openalpr/motiondetector.cpp index db53dcf..af42075 100644 --- a/src/openalpr/motiondetector.cpp +++ b/src/openalpr/motiondetector.cpp @@ -53,7 +53,13 @@ cv::Rect MotionDetector::MotionDetect(cv::Mat* frame) rectangle(*frame, rect_temp, cv::Scalar(0, 255, 0), 1, 8, 0); } else - largest_rect = { 0, 0, 0, 0 }; + { + largest_rect.x = 0; + largest_rect.y = 0; + largest_rect.width = 0; + largest_rect.height = 0; + } + // imshow("Motion detect", fgMaskMOG2); return largest_rect; }