xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡介

幀差法實現運動目標的檢測,畫出矩形框,跟蹤,以及計算質心。

資源截圖

代碼片段和文件信息

//172.17.10.30_03_20180703103417571.mp4
//?運動物體檢測——幀差法??
#include?“opencv2/opencv.hpp“??
#include??
#include??
#include??
using?namespace?cv;
#include???
using?namespace?std;
//?運動物體檢測函數聲明??
Mat?MoveDetect(Mat?temp?Mat?frame);

int?main()
{
//?定義VideoCapture類video
VideoCapture?video(“7111.mp4“);
VideoWriter?writer(“Video7111.avi“?CV_FOURCC(‘M‘?‘J‘?‘P‘?‘G‘)?25.0?Size(19201080)true);
if?(!video.isOpened())??//對video進行異常檢測??
{
cout?< return?0;
}
//?獲取幀數
int?frameCount?=?video.get(CV_CAP_PROP_frame_COUNT);//
//?獲取FPS
double?FPS?=?video.get(CV_CAP_PROP_FPS);//
//?存儲幀
Mat?frame;
//?存儲前一幀圖像
Mat?temp;
//?存儲結果圖像
Mat?result;
//while?(waitKey(33)?!=?27)
//{
// video

評論

共有 條評論