OpenCV  4.5.1
Open Source Computer Vision
Namespaces | Functions
cv::gapi::streaming Namespace Reference




cv::GMat BGR (const cv::GFrame &in)
 Gets bgr plane from input frame. More...
GMat desync (const GMat &g)
 Starts a desynchronized branch in the graph. More...
 G_TYPED_KERNEL (GSize,< GOpaque< Size >(GMat)>, "org.opencv.streaming.size")
 G_TYPED_KERNEL (GSizeR,< GOpaque< Size >(GOpaque< Rect >)>, "org.opencv.streaming.sizeR")
cv::gapi::GKernelPackage kernels ()
 Create a kernel package object containing kernels and transformations specified in variadic template argument. More...
template<typename T , typename G >
cv::GOpaque< T > meta (G g, const std::string &tag)
template<typename G >
cv::GOpaque< int64_tseq_id (G g)
template<typename G >
cv::GOpaque< int64_tseqNo (G g)
GOpaque< Sizesize (const GMat &src)
 Gets dimensions from Mat. More...
GOpaque< Sizesize (const GOpaque< Rect > &r)
template<typename G >
cv::GOpaque< int64_ttimestamp (G g)

Function Documentation

◆ BGR()

cv::GMat cv::gapi::streaming::BGR ( const cv::GFrame in)

Gets bgr plane from input frame.

Function textual ID is "org.opencv.streaming.BGR"
inInput frame
Image in BGR format

◆ desync()

GMat cv::gapi::streaming::desync ( const GMat g)

Starts a desynchronized branch in the graph.

This operation takes a single G-API data object and returns a graph-level "duplicate" of this object.

Operations which use this data object can be desynchronized from the rest of the graph.

This operation has no effect when a GComputation is compiled with regular cv::GComputation::compile(), since cv::GCompiled objects always produce their full output vectors.

This operation only makes sense when a GComputation is compiled in straming mode with cv::GComputation::compileStreaming(). If this operation is used and there are desynchronized outputs, the user should use a special version of cv::GStreamingCompiled::pull() which produces an array of cv::util::optional<> objects.

This feature is highly experimental now and is currently limited to a single GMat argument only.

◆ G_TYPED_KERNEL() [1/2]

cv::gapi::streaming::G_TYPED_KERNEL ( GSize  ,
< GOpaque< Size >(GMat)>  ,

◆ G_TYPED_KERNEL() [2/2]

cv::gapi::streaming::G_TYPED_KERNEL ( GSizeR  ,
< GOpaque< Size >(GOpaque< Rect >)>  ,

◆ meta()

template<typename T , typename G >
cv::GOpaque<T> cv::gapi::streaming::meta ( g,
const std::string &  tag 

◆ seq_id()

template<typename G >
cv::GOpaque<int64_t> cv::gapi::streaming::seq_id ( g)

◆ seqNo()

template<typename G >
cv::GOpaque<int64_t> cv::gapi::streaming::seqNo ( g)

◆ size() [1/2]

GOpaque<Size> cv::gapi::streaming::size ( const GMat src)

Gets dimensions from Mat.

Function textual ID is "org.opencv.streaming.size"
srcInput tensor
Size (tensor dimensions).
samples/cpp/lkdemo.cpp, samples/cpp/stitching_detailed.cpp, samples/cpp/train_HOG.cpp, and samples/tapi/squares.cpp.

◆ size() [2/2]

GOpaque<Size> cv::gapi::streaming::size ( const GOpaque< Rect > &  r)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Gets dimensions from rectangle.

Function textual ID is "org.opencv.streaming.sizeR"
rInput rectangle.
Size (rectangle dimensions).

◆ timestamp()

template<typename G >
cv::GOpaque<int64_t> cv::gapi::streaming::timestamp ( g)