1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
5 #ifndef _CAP_LIBREALSENE_HPP_
6 #define _CAP_LIBREALSENE_HPP_
8 #ifdef HAVE_LIBREALSENSE
10 #include <librealsense2/rs.hpp>
15 class VideoCapture_LibRealsense : public IVideoCapture
18 VideoCapture_LibRealsense(int index);
19 virtual ~VideoCapture_LibRealsense();
21 virtual double getProperty(int propIdx) const CV_OVERRIDE;
22 virtual bool setProperty(int propIdx, double propVal) CV_OVERRIDE;
24 virtual bool grabFrame() CV_OVERRIDE;
25 virtual bool retrieveFrame(int outputType, OutputArray frame) CV_OVERRIDE;
26 virtual int getCaptureDomain() CV_OVERRIDE;
27 virtual bool isOpened() const CV_OVERRIDE;