#include "stdafx.h"
#include "cv.h"
#include "highgui.h"
#include "iostream"
using namespace std;
const int NumFrame_per_video = 135;
const int Num_Total_Frame_per_Video =1000 ;
const int Num_Total_Video=Num_Total_Frame_per_Video/NumFrame_per_video+1;
int main(int argc,char ** argv)
{
CvCapture* capture=cvCaptureFromCAM(0);
CvVideoWriter* video=NULL;
IplImage* frame=NULL;
int n;
int i,j;
if(!capture) //如果不能打开摄像头给出警告
{
cout<<"Can not open the camera."<<endl;
return -1;
}
else
{
#include "cv.h"
#include "highgui.h"
#include "iostream"
using namespace std;
const int NumFrame_per_video = 135;
const int Num_Total_Frame_per_Video =1000 ;
const int Num_Total_Video=Num_Total_Frame_per_Video/NumFrame_per_video+1;
int main(int argc,char ** argv)
{
CvCapture* capture=cvCaptureFromCAM(0);
CvVideoWriter* video=NULL;
IplImage* frame=NULL;
int n;
int i,j;
if(!capture) //如果不能打开摄像头给出警告
{
cout<<"Can not open the camera."<<endl;
return -1;
}
else
{