57 #ifndef _RNR_CAMERA_CV_H 58 #define _RNR_CAMERA_CV_H 62 #include "rnr/rnrconfig.h" 67 #include "opencv/cv.h" 68 #include "opencv/highgui.h" 93 CameraCv(
const std::string &strVideoDevName=
"/dev/video0",
170 #endif // _RNR_CAMERA_CV_H OpenCv implementation of the camera class. The video is streamed via OpenCv calls.
cv::VideoCapture m_capture
video capture object
virtual void autoFocus()
Auto-focus camera.
virtual int startVideo(const CamRes &resVideo=CamResDft)
Start the camera streaming video.
Video and still image camera base class.
const CamRes CamResDft
default resolution
virtual ~CameraCv()
Destructor.
virtual int clickImage(cv::Mat &img, const CamRes &resImage=CamResDft)
Take a still image.
const CamRes CamResQVGA
Quarter VGA 320 x 240 res.
virtual CamRes setCameraResolution(const CamRes &res)
Set the camera resolution in either video or still image mode.
virtual int stopVideo()
Stop the camera from streaming video.
Camera resolution structure.
virtual int grabFrame(cv::Mat &frame)
Grab a image frame from the video stream.
cv::VideoCapture & getCaptureObj()
Get OpenCV captured object.
const CamRes CamResVGA
VGA 640 x 480 resolution.