#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <float.h>
#include <limits.h>
#include <time.h>
#include <ctype.h>
#ifdef _EiC
#define WIN32
#endif
int main( int argc, char** argv)
{
//===========================================
// CvCapture 是一个结构体,用来保存图像捕获所需要的信息。
// opencv 提供两种方式从外部捕获图像,一种是从摄像头中,一种是通过解码视频得到图像。两种方式
// 都必须从第一帧开始一帧一帧的按顺序获取,因此每获取一帧后都要保存相应的状态和参数。比如从视频
// 文件中获取,需要保存视频文件的文件名,相应的解码器类型,下一次如果要获取将需要解码哪一帧等。
// 这些信息都保存在CvCapture 结构中,每获取一帧后,这些信息