基于 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 & | 路径, |
|
|
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 | 值 ) |
|
inline |
◆ cap
◆ counter
| int64_t cv::gapi::wip::GCaptureSource::counter = 0 |
|
保护 |
◆ first
| cv::Mat cv::gapi::wip::GCaptureSource::first |
|
保护 |
◆ first_pulled
| bool cv::gapi::wip::GCaptureSource::first_pulled = false |
|
保护 |
此类的文档是从以下文件生成的: