海康机器人相机库 HikRobot camera library
更多...
#include <rmvl/camera/hik_camera.h>
◆ const_ptr
◆ ptr
◆ HikCamera() [1/3]
rm::HikCamera::HikCamera |
( |
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 |
◆ HikCamera() [2/3]
rm::HikCamera::HikCamera |
( |
const HikCamera & |
| ) |
|
|
delete |
◆ HikCamera() [3/3]
◆ ~HikCamera()
rm::HikCamera::~HikCamera |
( |
| ) |
|
|
override |
◆ get()
double rm::HikCamera::get |
( |
int |
propId | ) |
const |
|
override |
获取相机参数 Get the camera parameter
- 参数
-
[in] | propId | 参数编号 The ID of the parameter |
- 返回
- 参数值 The value of the parameter
◆ isOpened()
bool rm::HikCamera::isOpened |
( |
| ) |
const |
|
inlineoverride |
相机是否打开 Is the camera turned on?
◆ make_capture()
构建 HikCamera 对象 Construct HikCamera object
- 注解
- 此相机库仅支持 USB 相机设备,暂时对 GigE 网口相机不兼容
-
This camera library only supports USB camera devices and is temporarily not compatible with GigE netport cameras
- 参数
-
[in] | grab_mode | 相机采集模式 Camera grab mode |
[in] | retrieve_mode | 相机处理模式 Camera retrieve mode |
[in] | serial | 相机唯一序列号 Camera unique serial number |
- 示例
- samples/detector/hik/sample_hik_armor_size_classify.cpp.
◆ open()
bool rm::HikCamera::open |
( |
| ) |
|
打开相机 Open the camera device
- 返回
- 是否成功打开 Open Successfully?
◆ operator>>()
virtual HikCamera& rm::HikCamera::operator>> |
( |
cv::Mat & |
image | ) |
|
|
inlineoverridevirtual |
从相机设备中读取图像 Read image from the camera device
- 参数
-
image | 待读入的图像 The image to read in |
◆ read()
bool rm::HikCamera::read |
( |
cv::OutputArray |
image | ) |
|
|
override |
从相机设备中读取图像 Read image from the camera device
- 参数
-
[out] | image | 待读入的图像 The image to read in |
- 返回
- 是否读取成功 Read successfully?
◆ reconnect()
bool rm::HikCamera::reconnect |
( |
| ) |
|
相机重连 Camera reconnecting
- 返回
- 是否成功重连 Reconnect successfully?
◆ release()
void rm::HikCamera::release |
( |
| ) |
|
|
override |
释放相机资源 Releasing camera resources
◆ retrieve()
bool rm::HikCamera::retrieve |
( |
cv::OutputArray |
image, |
|
|
RetrieveMode |
flag |
|
) |
| |
|
override |
相机处理 Camera retrieve
- 参数
-
[out] | image | 输出图像 Output image |
[in] | flag | 相机处理模式 Camera retrieve mode |
- 返回
- 是否成功处理 Retrieve successfully?
◆ set()
bool rm::HikCamera::set |
( |
int |
propId, |
|
|
double |
value = 0.0 |
|
) |
| |
|
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 |
- 返回
- 是否设置成功 Set successfully?
该类的文档由以下文件生成: