//VideoCapture类:可以是从文件中读取同样也可以是从摄像头里获得
videoCapture cap(" ");
cap>>frame; //获得视频中的帧
cap.get(int propid);
cap.set(int propid,double value);
propid: cv::CAP_PROP_POS_MSEC 0 Current position in video file(milliseconds)or video
capture timestamp
cv::CAP_PROP_POS_FRAMES 1 Zero-based index of next frame
cv::CAP_PROP_POS_AVI_RATIO 2 Relative position in the video(range is 0 to 1
cv::CAP_PROP_FRAME_WIDTH 3 Width of frames in the video
cv::CAP_PROP_FRAME_HEIGHT 4 Height of frames in the video
cv::CAP_PROP_FPS 5 Frame rate at which the video was recorded
cv::CAP_PROP_FOURCC 6 Four character code indicating codec
cv::CAP_PROP_FRAME_COUNT 7 Total number of frames in a video file
cv::CAP_PROP_FORMAT 8 Format if the Mat objects retured(e.g.,CV_8UC3)
cv::CAP_PROP_MODE 9 Indicates capture mode;values are specific to video
backend being used(e.g.,DC 1394)