1: ubuntu 使用opencv,使用 cmakelist构建项目的简单demo
file name: camke_camera set 5 file follow as:
bin
build
include
res
src
the camer.cpp in src file
camer.cpp
#include <iostream>
#include<string.h>
#include<fstream>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
using namespace ml;
int device = 0;
int i_begin = 0;
int width = 2560;
int height = 720;
double fps = 45.0;
std::string outputVideoPath = "test\\";
std::string outputVideoName = "test.avi";
std::string outputPicturePath = "Latest\\";
std::string outputPictureFormat = ".jpg";
std::string imshowWindowName = "result";
int quit = 'q';
int fourcc = cv::VideoWriter::fourcc('M', 'P', '4', '2');
int waitkey_time = 100;
int main()
{
cv::VideoC