mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 13:16:52 +08:00
Changed method so that it does not require C++11
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user