资 源 简 介
#include
#include
#include
#include
#include "stdafx.h"
#include
using namespace std;
using namespace cv;
int main(int argc, char** argv)
{
//声明IplImage指针
IplImage* pFrame = NULL;
IplImage* pFrImg = NULL;
IplImage* pBkImg = NULL;
CvMat* pFrameMat = NULL;
CvMat* pFrMat = NULL;
CvMat* pBkMat = NULL;
CvCapture* pCapture = NULL;
int nFrmNum = 0;
//创建窗口
cvNamedWindow("原视频", 1);
cvNamedWindow("静态背景", 1);
cvNamedWindow("动态目标", 1);
//使窗口有序排列
cvMoveWindow("原视频", 30, 0);
cvMoveWindow("静态背景", 360, 0);
cvMoveWindow("动态目标", 690, 0);
const char* imagename = "2.jpg";