修改了摄像头读取方式

This commit is contained in:
xinyang
2019-04-27 16:16:53 +08:00
parent 9cfd26cc23
commit 4e47b38d7d
15 changed files with 272 additions and 255 deletions

View File

@@ -16,7 +16,7 @@
class VideoWrapper:public WrapperHead {
public:
VideoWrapper(const std::string& filename0, const std::string& filename1);
VideoWrapper(const std::string& filename);
~VideoWrapper();
@@ -33,9 +33,9 @@ public:
* @param src_right : output source video of right camera
* @return bool value: whether the reading is successful
*/
bool read(cv::Mat &src_left, cv::Mat &src_right) final;
bool read(cv::Mat &src) final;
private:
cv::VideoCapture video0, video1;
cv::VideoCapture video;
};