RMVL
1.0.0
RoboMaster Vision Library
|
海康机器人相机库 HikRobot camera library 更多...
#include <rmvl/camera/hik_video_capture.h>
Public 成员函数 | |
HikVideoCapture (GrabMode grab_mode, RetrieveMode retrieve_mode, std::string_view serial="") | |
构造函数 Constructor 更多... | |
HikVideoCapture (const HikVideoCapture &)=delete | |
HikVideoCapture (HikVideoCapture &&)=delete | |
~HikVideoCapture () override | |
析构函数 Destructor 更多... | |
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 |
相机是否打开 Is the camera turned on? 更多... | |
void | release () override |
释放相机资源 Releasing camera resources 更多... | |
bool | retrieve (cv::OutputArray image, RetrieveMode flag) override |
相机处理 Camera retrieve 更多... | |
bool | read (cv::OutputArray image) override |
从相机设备中读取图像 Read image from the camera device 更多... | |
virtual HikVideoCapture & | 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< HikVideoCapture > | make_capture (GrabMode grab_mode, RetrieveMode retrieve_mode, std::string_view serial="") |
构建 HikVideoCapture 对象 Construct HikVideoCapture object 更多... | |
海康机器人相机库 HikRobot camera library
rm::HikVideoCapture::HikVideoCapture | ( | GrabMode | grab_mode, |
RetrieveMode | retrieve_mode, | ||
std::string_view | serial = "" |
||
) |
构造函数 Constructor
[in] | grab_mode | 相机采集模式 Camera grab mode |
[in] | retrieve_mode | 相机处理模式 Camera retrieve mode |
[in] | serial | 相机唯一序列号 Camera unique serial number |
|
delete |
|
delete |
|
override |
析构函数 Destructor
|
override |
获取相机参数 Get the camera parameter
[in] | propId | 参数编号 The ID of the parameter |
|
inlineoverride |
相机是否打开 Is the camera turned on?
|
inlinestatic |
构建 HikVideoCapture 对象 Construct HikVideoCapture object
[in] | grab_mode | 相机采集模式 Camera grab mode |
[in] | retrieve_mode | 相机处理模式 Camera retrieve mode |
[in] | serial | 相机唯一序列号 Camera unique serial number |
bool rm::HikVideoCapture::open | ( | ) |
打开相机 Open the camera device
|
inlineoverridevirtual |
从相机设备中读取图像 Read image from the camera device
image | 待读入的图像 The image to read in |
|
override |
从相机设备中读取图像 Read image from the camera device
[out] | image | 待读入的图像 The image to read in |
bool rm::HikVideoCapture::reconnect | ( | ) |
相机重连 Camera reconnecting
|
override |
释放相机资源 Releasing camera resources
|
override |
相机处理 Camera retrieve
[out] | image | 输出图像 Output image |
[in] | flag | 相机处理模式 Camera retrieve mode |
|
override |
设置相机参数/事件 Set the camera parameter or activity
[in] | propId | 参数/事件编号 The ID of the parameter or activity |
[in] | value | 参数/事件值 The value of the parameter or activity |