RMVL
1.0.0
RoboMaster Vision Library
|
迈德威视相机库 MindVision camera library 更多...
#include <rmvl/camera/mv_video_capture.h>
Public 成员函数 | |
MvVideoCapture (GrabMode grab_mode, RetrieveMode retrieve_mode, const std::string &serial=std::string(), const std::vector< int > &decode_param=std::vector< int >()) | |
构造函数 Constructor 更多... | |
MvVideoCapture (const MvVideoCapture &)=delete | |
MvVideoCapture (MvVideoCapture &&)=delete | |
~MvVideoCapture () override | |
bool | set (int propId, double value=0.0) override |
设置相机参数/事件 Set the camera parameter or activity 更多... | |
double | get (int propId) const override |
获取相机参数 Get the camera parameter 更多... | |
bool | isOpened () const override |
相机是否打开 Camera is turned on? 更多... | |
void | release () override |
释放相机资源 Releasing camera resources 更多... | |
bool | grab () override |
相机采集 Camera grabbing 更多... | |
bool | retrieve (cv::OutputArray image, RetrieveMode flag) override |
相机处理 Camera retrieve 更多... | |
bool | read (cv::OutputArray image) override |
从相机设备中读取图像 Read image from the camera device 更多... | |
virtual MvVideoCapture & | operator>> (cv::Mat &image) override |
从相机设备中读取图像 Read image from the camera device 更多... | |
bool | open () |
打开相机 Open the camera device 更多... | |
bool | reconnect () |
相机重连 Camera reconnecting 更多... | |
静态 Public 成员函数 | |
static std::unique_ptr< MvVideoCapture > | make_capture (GrabMode grab_mode, RetrieveMode retrieve_mode, const std::string &serial=std::string(), const std::vector< int > &decode_param=std::vector< int >()) |
构建 MvVideoCapture 对象 Construct MvVideoCapture object 更多... | |
迈德威视相机库 MindVision camera library
rm::MvVideoCapture::MvVideoCapture | ( | GrabMode | grab_mode, |
RetrieveMode | retrieve_mode, | ||
const std::string & | serial = std::string() , |
||
const std::vector< int > & | decode_param = std::vector< int >() |
||
) |
构造函数 Constructor
[in] | grab_mode | 相机采集模式 Camera grab mode |
[in] | retrieve_mode | 相机处理模式 Camera retrieve mode |
[in] | serial | 相机唯一序列号 Camera unique serial number |
[in] | decode_param | 解码/转码参数 Decoding parameters |
|
delete |
|
delete |
|
override |
|
override |
获取相机参数 Get the camera parameter
propId | 参数编号 The ID of the parameter |
|
inlineoverride |
相机采集 Camera grabbing
|
inlineoverride |
相机是否打开 Camera is turned on?
|
inlinestatic |
构建 MvVideoCapture 对象 Construct MvVideoCapture object
[in] | grab_mode | 相机采集模式 Camera grab mode |
[in] | retrieve_mode | 相机处理模式 Camera retrieve mode |
[in] | serial | 相机唯一序列号 Camera unique serial number |
[in] | decode_param | 解码/转码参数 Decoding parameters |
bool rm::MvVideoCapture::open | ( | ) |
打开相机 Open the camera device
|
inlineoverridevirtual |
从相机设备中读取图像 Read image from the camera device
image | 待读入的图像 The image to read in |
|
inlineoverride |
从相机设备中读取图像 Read image from the camera device
image | 待读入的图像 The image to read in |
bool rm::MvVideoCapture::reconnect | ( | ) |
相机重连 Camera reconnecting
|
inlineoverride |
释放相机资源 Releasing camera resources
|
override |
相机处理 Camera retrieve
image | 输出图像 Output image |
flag | 相机处理模式 Camera retrieve mode |
|
override |
设置相机参数/事件 Set the camera parameter or activity
propId | 参数/事件编号 The ID of the parameter or activity |
value | 参数/事件值 The value of the parameter or activity |