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

此名稱空間包含實驗性的 G-API 功能,此名稱空間中的函式或結構在未來版本中可能會更改或刪除。此名稱空間還包含 API 尚未穩定的函式。 更多...

名稱空間

名稱空間  draw
 
名稱空間  gst
 
名稱空間  onevpl
 
名稱空間  ov
 

結構體  Data
 此聚合型別表示 G-API 可以處理的所有型別(透過變體)。 更多...
 
類  GAsyncCanceled
 
類  GAsyncContext
 一個類,用於將非同步請求分組以便一次性取消它們。 更多...
 
類  GCaptureSource
 基於 OpenCV VideoCapture 的流媒體源。 更多...
 
類  IStreamSource
 抽象流媒體管道源。 更多...
 
類  QueueInput
 
類  QueueSource
 排隊流媒體管道源。 更多...
 
類  QueueSourceBase
 

型別定義

using GStreamerPipeline = gst::GStreamerPipeline
 
using GStreamerSource = gst::GStreamerSource
 
using GVPLSource = onevpl::GSource
 

函式

std::future< void > async (GCompiled &gcmpld, GRunArgs &&ins, GRunArgsP &&outs)
 
std::future< void > async (GCompiled &gcmpld, GRunArgs &&ins, GRunArgsP &&outs, GAsyncContext &ctx)
 
void async (GCompiled &gcmpld, std::function< void(std::exception_ptr)> &&callback, GRunArgs &&ins, GRunArgsP &&outs)
 
void async (GCompiled &gcmpld, std::function< void(std::exception_ptr)> &&callback, GRunArgs &&ins, GRunArgsP &&outs, GAsyncContext &ctx)
 
std::future< void > async_apply (GComputation &gcomp, GRunArgs &&ins, GRunArgsP &&outs, GCompileArgs &&args, GAsyncContext &ctx)
 
std::future< void > async_apply (GComputation &gcomp, GRunArgs &&ins, GRunArgsP &&outs, GCompileArgs &&args={})
 
void async_apply (GComputation &gcomp, std::function< void(std::exception_ptr)> &&callback, GRunArgs &&ins, GRunArgsP &&outs, GCompileArgs &&args, GAsyncContext &ctx)
 
void async_apply (GComputation &gcomp, std::function< void(std::exception_ptr)> &&callback, GRunArgs &&ins, GRunArgsP &&outs, GCompileArgs &&args={})
 
cv::Ptr< IStreamSourceget_streaming_source (cv::Ptr< GStreamerPipeline > &pipeline, const std::string &appsinkName, const GStreamerSource::OutputType outputType=GStreamerSource::OutputType::MAT)
 
cv::Ptr< IStreamSourcemake_capture_src (const int id, const std::map< int, double > &properties={})
 
cv::Ptr< IStreamSourcemake_capture_src (const std::string &path, const std::map< int, double > &properties={})
 
cv::Ptr< IStreamSourcemake_gst_src (const std::string &pipeline, const GStreamerSource::OutputType outputType=GStreamerSource::OutputType::MAT)
 
template<class... Args>
cv::Ptr< IStreamSourcemake_onevpl_src (Args &&... args)
 
template<class T , class... Args>
IStreamSource::Ptr make_src (Args &&... args)
 

詳細描述

此名稱空間包含實驗性的 G-API 功能,此名稱空間中的函式或結構在未來版本中可能會更改或刪除。此名稱空間還包含 API 尚未穩定的函式。

型別定義文件

◆ GStreamerPipeline

◆ GStreamerSource

◆ GVPLSource

函式文件

◆ async() (過載)[1/4]

std::future< void > cv::gapi::wip::async ( GCompiled & gcmpld,
GRunArgs && ins,
GRunArgsP && outs )

這是一個過載成員函式,為方便起見而提供。它與上述函式的區別僅在於接受的引數。

引數
gcmpld非同步執行的已編譯計算(圖)
insgcmpld 的輸入引數
outsgcmpld 的輸出引數
返回
用於等待非同步操作完成的 std::future<void> 物件
另請參見
async

◆ async() (過載)[2/4]

std::future< void > cv::gapi::wip::async ( GCompiled & gcmpld,
GRunArgs && ins,
GRunArgsP && outs,
GAsyncContext & ctx )
引數
gcmpld非同步執行的已編譯計算(圖)
insgcmpld 的輸入引數
outsgcmpld 的輸出引數
ctx此請求所屬的上下文
返回
用於等待非同步操作完成的 std::future<void> 物件
另請參見
async GAsyncContext

◆ async() (過載)[3/4]

void cv::gapi::wip::async ( GCompiled & gcmpld,
std::function< void(std::exception_ptr)> && callback,
GRunArgs && ins,
GRunArgsP && outs )

這些函式非同步(即可能在單獨的執行執行緒上)呼叫其第一個引數的 GCompiled::operator() 成員函式,並傳入其餘引數(回撥除外)的副本。這些函式之間的區別在於獲取完成通知的方式(透過回撥或等待 std::future 物件)。如果在執行 apply 期間發生異常,它將透過回撥(透過函式引數)傳遞給回撥函式,或傳遞給 future(並在呼叫 std::future::get 時丟擲)。

注:輸入引數在呼叫 async 函式時(實際上在呼叫 cv::gin 時)被複制,因此無需在非同步活動實際完成之後仍然存在。而輸出引數透過引用(指標)“捕獲”,因此必須在非同步活動之後仍然存在(即至少在呼叫回撥或 future 解除阻塞之前仍然存在)。

引數
gcmpld要非同步啟動的已編譯計算(圖)
callbackgcmpld 執行完成後要呼叫的回撥函式
insgcmpld 的輸入引數
outsgcmpld 的輸出引數

◆ async() (過載)[4/4]

void cv::gapi::wip::async ( GCompiled & gcmpld,
std::function< void(std::exception_ptr)> && callback,
GRunArgs && ins,
GRunArgsP && outs,
GAsyncContext & ctx )

這是一個過載成員函式,為方便起見而提供。它與上述函式的區別僅在於接受的引數。

引數
gcmpld非同步執行的已編譯計算(圖)
callbackgcmpld 執行完成後要呼叫的回撥函式
insgcmpld 的輸入引數
outsgcmpld 的輸出引數
ctx此請求所屬的上下文
另請參見
async GAsyncContext

◆ async_apply() (過載)[1/4]

std::future< void > cv::gapi::wip::async_apply ( GComputation & gcomp,
GRunArgs && ins,
GRunArgsP && outs,
GCompileArgs && args,
GAsyncContext & ctx )

這是一個過載成員函式,為方便起見而提供。它與上述函式的區別僅在於接受的引數。

引數
gcomp非同步執行的計算(圖)
insgcomp 的輸入引數
outsgcomp 的輸出引數
args要傳遞給 GComputation::apply() 的編譯引數
ctx此請求所屬的上下文
返回
用於等待非同步操作完成的 std::future<void> 物件
另請參見
async_apply async GAsyncContext

◆ async_apply() (過載)[2/4]

std::future< void > cv::gapi::wip::async_apply ( GComputation & gcomp,
GRunArgs && ins,
GRunArgsP && outs,
GCompileArgs && args = {} )

這是一個過載成員函式,為方便起見而提供。它與上述函式的區別僅在於接受的引數。

引數
gcomp非同步執行的計算(圖)
insgcomp 的輸入引數
outsgcomp 的輸出引數
args要傳遞給 GComputation::apply() 的編譯引數
返回
用於等待非同步操作完成的 std::future<void> 物件
另請參見
async_apply async

◆ async_apply() (過載)[3/4]

void cv::gapi::wip::async_apply ( GComputation & gcomp,
std::function< void(std::exception_ptr)> && callback,
GRunArgs && ins,
GRunArgsP && outs,
GCompileArgs && args,
GAsyncContext & ctx )

這是一個過載成員函式,為方便起見而提供。它與上述函式的區別僅在於接受的引數。

引數
gcomp非同步執行的計算(圖)
callbackgcomp 執行完成後要呼叫的回撥函式
insgcomp 的輸入引數
outsgcomp 的輸出引數
args要傳遞給 GComputation::apply() 的編譯引數
ctx此請求所屬的上下文
另請參見
async_apply async GAsyncContext

◆ async_apply() (過載)[4/4]

void cv::gapi::wip::async_apply ( GComputation & gcomp,
std::function< void(std::exception_ptr)> && callback,
GRunArgs && ins,
GRunArgsP && outs,
GCompileArgs && args = {} )

async() 函式不同,這些函式會呼叫傳入的 GComputationGComputation::apply() 成員函式。

引數
gcomp非同步執行的計算(圖)
callbackgcomp 執行完成後要呼叫的回撥函式
insgcomp 的輸入引數
outsgcomp 的輸出引數
args要傳遞給 GComputation::apply() 的編譯引數
另請參見
async

◆ get_streaming_source()

cv::Ptr< IStreamSource > cv::gapi::wip::get_streaming_source ( cv::Ptr< GStreamerPipeline > & pipeline,
const std::string & appsinkName,
const GStreamerSource::OutputType outputType = GStreamerSource::OutputType::MAT )
inline
Python
cv.gapi.wip.get_streaming_source(pipeline, appsinkName[, outputType]) -> retval

◆ make_capture_src() (過載)[1/2]

cv::Ptr< IStreamSource > cv::gapi::wip::make_capture_src ( const int id,
const std::map< int, double > & properties = {} )
inline
Python
cv.gapi.wip.make_capture_src(path[, properties]) -> retval
cv.gapi.wip.make_capture_src(id[, properties]) -> retval

◆ make_capture_src() (過載)[2/2]

cv::Ptr< IStreamSource > cv::gapi::wip::make_capture_src ( const std::string & 路徑,
const std::map< int, double > & properties = {} )
inline
Python
cv.gapi.wip.make_capture_src(path[, properties]) -> retval
cv.gapi.wip.make_capture_src(id[, properties]) -> retval

◆ make_gst_src()

cv::Ptr< IStreamSource > cv::gapi::wip::make_gst_src ( const std::string & pipeline,
const GStreamerSource::OutputType outputType = GStreamerSource::OutputType::MAT )
inline
Python
cv.gapi.wip.make_gst_src(pipeline[, outputType]) -> retval
此函式的呼叫圖如下

◆ make_onevpl_src()

template<class... Args>
cv::Ptr< IStreamSource > cv::gapi::wip::make_onevpl_src ( Args &&... args)
inline
此函式的呼叫圖如下

◆ make_src()

template<class T , class... Args>
IStreamSource::Ptr cv::gapi::wip::make_src ( Args &&... args)
inline