![]() |
OpenCV
4.7.0
Open Source Computer Vision
|
OpenCV's VideoCapture-based streaming source. More...
#include <opencv2/gapi/streaming/cap.hpp>
Public Member Functions | |
GCaptureSource (const std::string &path) | |
GCaptureSource (int id) | |
![]() | |
virtual | ~IStreamSource ()=default |
virtual GMetaArg | descr_of () const =0 |
Ptr | ptr () |
virtual bool | pull (Data &data)=0 |
Protected Member Functions | |
virtual GMetaArg | descr_of () const override |
void | prep () |
virtual bool | pull (cv::gapi::wip::Data &data) override |
Protected Attributes | |
cv::VideoCapture | cap |
int64_t | counter = 0 |
cv::Mat | first |
bool | first_pulled = false |
Additional Inherited Members | |
![]() | |
using | Ptr = std::shared_ptr< IStreamSource > |
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 available before using this in your application (G-API doesn't depend on it directly).
|
inlineexplicit |
|
inlineexplicit |
|
inlineoverrideprotectedvirtual |
Implements cv::gapi::wip::IStreamSource.
|
inlineprotected |
|
inlineoverrideprotectedvirtual |
Implements cv::gapi::wip::IStreamSource.
|
protected |
|
protected |
|
protected |
|
protected |