修改了摄像头读取方式
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user