OpenCV 5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
Drawing operations and functions

Detailed Description

Functions

void cv::gapi::wip::draw::render (cv::Mat &bgr, const Prims &prims, cv::GCompileArgs &&args={})
 The function renders on the input image passed drawing primitivies.
 
void cv::gapi::wip::draw::render (cv::Mat &y_plane, cv::Mat &uv_plane, const Prims &prims, cv::GCompileArgs &&args={})
 The function renders on two NV12 planes passed drawing primitivies.
 
void cv::gapi::wip::draw::render (cv::MediaFrame &frame, const Prims &prims, cv::GCompileArgs &&args={})
 The function renders on the input media frame passed drawing primitivies.
 
GMat cv::gapi::wip::draw::render3ch (const GMat &src, const GArray< Prim > &prims)
 Renders on 3 channels input.
 
GFrame cv::gapi::wip::draw::renderFrame (const GFrame &m_frame, const GArray< Prim > &prims)
 Renders Media Frame.
 
GMat2 cv::gapi::wip::draw::renderNV12 (const GMat &y, const GMat &uv, const GArray< Prim > &prims)
 Renders on two planes.
 

Function Documentation

◆ render() [1/3]

void cv::gapi::wip::draw::render ( cv::Mat & bgr,
const Prims & prims,
cv::GCompileArgs && args = {} )
Python:
cv.gapi.wip.draw.render(bgr, prims[, args]) -> None
cv.gapi.wip.draw.render(y_plane, uv_plane, prims[, args]) -> None

#include <opencv2/gapi/render/render.hpp>

The function renders on the input image passed drawing primitivies.

Parameters
bgrinput image: 8-bit unsigned 3-channel image CV_8UC3.
primsvector of drawing primitivies
argsgraph compile time parameters

◆ render() [2/3]

void cv::gapi::wip::draw::render ( cv::Mat & y_plane,
cv::Mat & uv_plane,
const Prims & prims,
cv::GCompileArgs && args = {} )
Python:
cv.gapi.wip.draw.render(bgr, prims[, args]) -> None
cv.gapi.wip.draw.render(y_plane, uv_plane, prims[, args]) -> None

#include <opencv2/gapi/render/render.hpp>

The function renders on two NV12 planes passed drawing primitivies.

Parameters
y_planeinput image: 8-bit unsigned 1-channel image CV_8UC1.
uv_planeinput image: 8-bit unsigned 2-channel image CV_8UC2.
primsvector of drawing primitivies
argsgraph compile time parameters

◆ render() [3/3]

void cv::gapi::wip::draw::render ( cv::MediaFrame & frame,
const Prims & prims,
cv::GCompileArgs && args = {} )
Python:
cv.gapi.wip.draw.render(bgr, prims[, args]) -> None
cv.gapi.wip.draw.render(y_plane, uv_plane, prims[, args]) -> None

#include <opencv2/gapi/render/render.hpp>

The function renders on the input media frame passed drawing primitivies.

Parameters
frameinput Media Frame : cv::MediaFrame.
primsvector of drawing primitivies
argsgraph compile time parameters

◆ render3ch()

GMat cv::gapi::wip::draw::render3ch ( const GMat & src,
const GArray< Prim > & prims )
Python:
cv.gapi.wip.draw.render3ch(src, prims) -> retval

#include <opencv2/gapi/render/render.hpp>

Renders on 3 channels input.

Output image must be 8-bit unsigned planar 3-channel image

Parameters
srcinput image: 8-bit unsigned 3-channel image CV_8UC3
primsdraw primitives

◆ renderFrame()

GFrame cv::gapi::wip::draw::renderFrame ( const GFrame & m_frame,
const GArray< Prim > & prims )

#include <opencv2/gapi/render/render.hpp>

Renders Media Frame.

Output media frame frame cv::MediaFrame

Parameters
m_frameinput image: cv::MediaFrame cv::MediaFrame
primsdraw primitives

◆ renderNV12()

GMat2 cv::gapi::wip::draw::renderNV12 ( const GMat & y,
const GMat & uv,
const GArray< Prim > & prims )
Python:
cv.gapi.wip.draw.renderNV12(y, uv, prims) -> retval

#include <opencv2/gapi/render/render.hpp>

Renders on two planes.

Output y image must be 8-bit unsigned planar 1-channel image CV_8UC1 uv image must be 8-bit unsigned planar 2-channel image CV_8UC2

Parameters
yinput image: 8-bit unsigned 1-channel image CV_8UC1
uvinput image: 8-bit unsigned 2-channel image CV_8UC2
primsdraw primitives