RMVL
1.1.0
RoboMaster Vision Library
|
迈德威视相机库 MindVision camera library 更多...
#include <rmvl/camera/mv_camera.h>
Public 类型 | |
using | ptr = std::unique_ptr< MvCamera > |
using | const_ptr = std::unique_ptr< const MvCamera > |
Public 成员函数 | |
MvCamera (GrabMode grab_mode, RetrieveMode retrieve_mode, std::string_view serial="", const std::vector< int > &decode_param=std::vector< int >()) | |
构造函数 Constructor 更多... | |
MvCamera (const MvCamera &)=delete | |
MvCamera (MvCamera &&)=delete | |
~MvCamera () 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 MvCamera & | 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< MvCamera > | make_capture (GrabMode grab_mode, RetrieveMode retrieve_mode, std::string_view serial="", const std::vector< int > &decode_param=std::vector< int >()) |
构建 MvCamera 对象 Construct MvCamera object 更多... | |
迈德威视相机库 MindVision camera library
using rm::MvCamera::const_ptr = std::unique_ptr<const MvCamera> |
using rm::MvCamera::ptr = std::unique_ptr<MvCamera> |
rm::MvCamera::MvCamera | ( | GrabMode | grab_mode, |
RetrieveMode | retrieve_mode, | ||
std::string_view | serial = "" , |
||
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 |
bool rm::MvCamera::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::MvCamera::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 |