基於 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 |
|
保護 |
此類的文件是從以下檔案生成的: