how to track foreground in video and draw rectangle on it
问题 im working in motion detection script that tracking pepole i used foreground function MOG2 and it work what i want to do in the next step is draw a rectangle in moving pepole but i get a error when i run it there are any ideas how to fix it ? the error: OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /home/shar/opencv/modules/core/src/array.cpp, line 2494 terminate called after throwing an instance of 'cv::Exception' what():