BitmapToolkit Scol plugin
|
#include <raspicam_cv.h>
Public Member Functions | |
RaspiCam_Cv () | |
~RaspiCam_Cv () | |
bool | open (void) |
bool | isOpened () const |
void | release () |
bool | grab () |
void | retrieve (cv::Mat &image) |
bool | read (cv::Mat &image) |
double | get (int propId) |
bool | set (int propId, double value) |
std::string | getId () const |
Detailed Description
Class for using Raspberry camera as in opencv
Definition at line 49 of file raspicam_cv.h.
Constructor & Destructor Documentation
◆ RaspiCam_Cv()
raspicam::RaspiCam_Cv::RaspiCam_Cv | ( | ) |
Constructor
Definition at line 46 of file raspicam_cv.cpp.
◆ ~RaspiCam_Cv()
raspicam::RaspiCam_Cv::~RaspiCam_Cv | ( | ) |
Destructor
Definition at line 51 of file raspicam_cv.cpp.
Member Function Documentation
◆ get()
Returns the specified VideoCapture property
Definition at line 102 of file raspicam_cv.cpp.
◆ getId()
std::string raspicam::RaspiCam_Cv::getId | ( | ) | const |
Returns the camera identifier. We assume the camera id is the one of the raspberry obtained using raspberry serial number obtained in /proc/cpuinfo
Definition at line 233 of file raspicam_cv.cpp.
◆ grab()
bool raspicam::RaspiCam_Cv::grab | ( | ) |
Grabs the next frame from video file or capturing device.
Definition at line 74 of file raspicam_cv.cpp.
◆ isOpened()
bool raspicam::RaspiCam_Cv::isOpened | ( | ) | const |
Returns true if video capturing has been initialized already.
Definition at line 63 of file raspicam_cv.cpp.
◆ open()
Open capturing device for video capturing
Definition at line 57 of file raspicam_cv.cpp.
◆ read()
bool raspicam::RaspiCam_Cv::read | ( | cv::Mat & | image | ) |
Returns the specified VideoCapture property
Definition at line 87 of file raspicam_cv.cpp.
◆ release()
void raspicam::RaspiCam_Cv::release | ( | ) |
Closes video file or capturing device.
Definition at line 67 of file raspicam_cv.cpp.
◆ retrieve()
void raspicam::RaspiCam_Cv::retrieve | ( | cv::Mat & | image | ) |
Decodes and returns the grabbed video frame.
Definition at line 81 of file raspicam_cv.cpp.
◆ set()
bool raspicam::RaspiCam_Cv::set | ( | int | propId, |
double | value | ||
) |
Sets a property in the VideoCapture.
Implemented properties: CV_CAP_PROP_FRAME_WIDTH,CV_CAP_PROP_FRAME_HEIGHT, CV_CAP_PROP_FORMAT: CV_8UC1 or CV_8UC3 CV_CAP_PROP_BRIGHTNESS: [0,100] CV_CAP_PROP_CONTRAST: [0,100] CV_CAP_PROP_SATURATION: [0,100] CV_CAP_PROP_GAIN: (iso): [0,100] CV_CAP_PROP_EXPOSURE: -1 auto. [1,100] shutter speed from 0 to 33ms CV_CAP_PROP_WHITE_BALANCE_RED_V : [1,100] -1 auto whitebalance CV_CAP_PROP_WHITE_BALANCE_BLUE_U : [1,100] -1 auto whitebalance CV_CAP_PROP_FPS
Sets a property in the VideoCapture.
Definition at line 153 of file raspicam_cv.cpp.
The documentation for this class was generated from the following files:
- include/raspicam/raspicam_cv.h
- src/raspicam/raspicam_cv.cpp
Generated by 1.9.8