OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::gapi::wip::GCaptureSource 類參考

基於 OpenCV 的 VideoCapture 的流源。 更多...

#include <opencv2/gapi/streaming/cap.hpp>

cv::gapi::wip::GCaptureSource 的協作圖

公共成員函式

 GCaptureSource (const std::string &path, const std::map< int, double > &properties={})
 
 GCaptureSource (int id, const std::map< int, double > &properties={})
 
void set (int propid, double value)
 
- 繼承自 cv::gapi::wip::IStreamSource 的公共成員函式
virtual ~IStreamSource ()=default
 
virtual void halt ()
 
Ptr ptr ()
 

保護成員函式

virtual GMetaArg descr_of () const override
 
void prep (const std::map< int, double > &properties)
 
virtual bool pull (cv::gapi::wip::Data &data) override
 

保護屬性

cv::VideoCapture cap
 
int64_t counter = 0
 
cv::Mat first
 
bool first_pulled = false
 

附加的繼承成員

- 繼承自 cv::gapi::wip::IStreamSource 的公共型別
using Ptr = std::shared_ptr<IStreamSource>
 

詳細描述

基於 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

實現 cv::gapi::wip::IStreamSource

此函式的呼叫圖如下

◆ prep()

void cv::gapi::wip::GCaptureSource::prep ( const std::map< int, double > & properties)
inlineprotected
此函式的呼叫圖如下

◆ pull()

virtual bool cv::gapi::wip::GCaptureSource::pull ( cv::gapi::wip::Data & data)
inlineoverrideprotectedvirtual

實現 cv::gapi::wip::IStreamSource

此函式的呼叫圖如下

◆ set()

void cv::gapi::wip::GCaptureSource::set ( int propid,
double  )
inline
此函式的呼叫圖如下

成員資料文件

◆ cap

cv::VideoCapture cv::gapi::wip::GCaptureSource::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
保護

此類的文件是從以下檔案生成的: