AutoCar  v1.0.0
video_recoder.h
1 #ifndef VIDEO_RECODER
2 #define VIDEO_RECODER
3 
4 #include <iostream>
5 #include <stdio.h>
6 #include <opencv2/opencv.hpp>
7 
8 namespace autocar
9 {
10 namespace vision_mul
11 {
12  class video_recoder {
13  public:
14  video_recoder(std::string video_dir_="/home/dji/Videos", int cols_=1280, int rows_=720);
15  ~video_recoder();
16  void save_frame(const cv::Mat &image);
17 
18  private:
19  cv::VideoWriter writer;
20  int rows;
21  int cols;
22  };
23 }
24 }
25 
26 #endif // VIDEO_RECODER
27 
Definition: vel2odom.h:5
Definition: video_recoder.h:12