基于 OpenCV 的 VideoCapture 的流式源。更多...
#include <opencv2/gapi/streaming/cap.hpp>
基于 OpenCV 的 VideoCapture 的流式源。
此类实现 IStreamSource 接口。它的构造函数接受与 cv::VideoCapture 相同的参数。
请确保在您的应用程序中使用它之前,videoio OpenCV 模块可用(G-API 不直接依赖于它)。
- 注意
- 流式源通过共享指针传递给 G-API,因此请使用 gapi::make_src<> 创建对象,并使用 ptr() 将 GCaptureSource 传递给 cv::gin()。
◆ GCaptureSource() [1/2]
cv::gapi::wip::GCaptureSource::GCaptureSource |
( |
int |
id, |
|
|
const std::map< int, double > & |
properties = {} |
|
) |
| |
|
inlineexplicit |
◆ GCaptureSource() [2/2]
cv::gapi::wip::GCaptureSource::GCaptureSource |
( |
const std::string & |
path, |
|
|
const std::map< int, double > & |
properties = {} |
|
) |
| |
|
inlineexplicit |
◆ descr_of()
virtual GMetaArg cv::gapi::wip::GCaptureSource::descr_of |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ prep()
void cv::gapi::wip::GCaptureSource::prep |
( |
const std::map< int, double > & |
properties | ) |
|
|
inlineprotected |
◆ pull()
|
inlineoverrideprotectedvirtual |
◆ set()
void cv::gapi::wip::GCaptureSource::set |
( |
int |
propid, |
|
|
double |
value |
|
) |
| |
|
inline |
◆ cap
◆ counter
int64_t cv::gapi::wip::GCaptureSource::counter = 0 |
|
protected |
◆ first
cv::Mat cv::gapi::wip::GCaptureSource::first |
|
protected |
◆ first_pulled
bool cv::gapi::wip::GCaptureSource::first_pulled = false |
|
protected |
此类的文档是从以下文件生成的