mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 05:06:53 +08:00
Making sure motion rect is in-bounds
This commit is contained in:
@@ -61,5 +61,5 @@ cv::Rect MotionDetector::MotionDetect(cv::Mat* frame)
|
||||
}
|
||||
|
||||
// imshow("Motion detect", fgMaskMOG2);
|
||||
return largest_rect;
|
||||
return expandRect(largest_rect, 0, 0, frame->cols, frame->rows);
|
||||
}
|
||||
|
Reference in New Issue
Block a user