重新整理文件夹结构,并添加CNN训练代码。
This commit is contained in:
23
others/src/camera/video_wrapper.cpp
Normal file
23
others/src/camera/video_wrapper.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// Created by xixiliadorabarry on 1/24/19.
|
||||
//
|
||||
|
||||
#include "camera/video_wrapper.h"
|
||||
|
||||
|
||||
VideoWrapper::VideoWrapper(const std::string &filename0, const std::string &filename1) {
|
||||
video0.open(filename0);
|
||||
video1.open(filename1);
|
||||
}
|
||||
|
||||
VideoWrapper::~VideoWrapper() = default;
|
||||
|
||||
|
||||
bool VideoWrapper::init() {
|
||||
return video0.isOpened() && video1.isOpened();
|
||||
}
|
||||
|
||||
bool VideoWrapper::read(cv::Mat &src_left, cv::Mat &src_right) {
|
||||
return video0.read(src_left) && video1.read(src_right);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user