Function opencv::gapi::desync

source ·
pub fn desync(g: &GMat) -> Result<GMat>
Expand description

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 streaming 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.

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