OpenCV.用户选择

1、Pdf.P153(书.P122)

  

 

 

2、

// 来自:"Creating a video with OpenCV — OpenCV 2.4.13.7 documentation.html"(https://docs.opencv.org/2.4/doc/tutorials/highgui/video-write/video-write.html)

#include <iostream>    // for standard I/O
#include <string>   // for strings

#include <opencv2/core/core.hpp>        // Basic OpenCV structures (cv::Mat)
#include <opencv2/highgui/highgui.hpp>  // Video write

using namespace std;
using namespace cv;

int main_0404_zz(int argc, char *argv[])
{
    Size S = Size((int) 30,    // Acquire input size
        (int) 50);

    VideoWriter outputVideo;                                        // Open the output
        outputVideo.open("z12345.avi", -1, 30, S, true);

    return 0;
}

 2.1、程序运行起来的样子是这样的,可以选择 压缩程序 和 压缩质量

  

 2.2、可以选择的 压缩程序 有如下几种

  ZC:为何只有这几种?是∵ 我机子里面的 解码器比较少的缘故??

  

 

3、

4、

5、

 

posted @ 2019-06-09 15:57  CppSkill  阅读(123)  评论(0编辑  收藏  举报