OpenCV's VideoCapture-based streaming source.
More...
#include <opencv2/gapi/streaming/cap.hpp>
OpenCV's VideoCapture-based streaming source.
This class implements IStreamSource interface. Its constructor takes the same parameters as cv::VideoCapture does.
Please make sure that videoio OpenCV module is avaiable before using this in your application (G-API doesn't depend on it directly).
- Note
- stream sources are passed to G-API via shared pointers, so please gapi::make_src<> to create objects and ptr() to pass a GCaptureSource to cv::gin().
◆ GCaptureSource() [1/2]
cv::gapi::wip::GCaptureSource::GCaptureSource |
( |
int |
id | ) |
|
|
inlineexplicit |
◆ GCaptureSource() [2/2]
cv::gapi::wip::GCaptureSource::GCaptureSource |
( |
const std::string & |
path | ) |
|
|
inlineexplicit |
◆ descr_of()
virtual GMetaArg cv::gapi::wip::GCaptureSource::descr_of |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ prep()
void cv::gapi::wip::GCaptureSource::prep |
( |
| ) |
|
|
inlineprotected |
◆ pull()
|
inlineoverrideprotectedvirtual |
◆ cap
◆ first
cv::Mat cv::gapi::wip::GCaptureSource::first |
|
protected |
◆ first_pulled
bool cv::gapi::wip::GCaptureSource::first_pulled = false |
|
protected |
The documentation for this class was generated from the following file: