Using gapi::NV12toRGB

Is there any description or sample code of how to use gapi::NV12toRGB, or other gapi conversion routines, with cv::Mat source and outputs? Something that actually works would be nice.

I’ve been through the code and google and cannot find anything.

Hello!

The description of functions is available on official OpenCV Docs portal - the particular gapi::NV12toRGB function description is here.

As for the usage, there are no samples on this particular function, but there is a test where you can see how to use it (modules/gapi/test/common/gapi_imgproc_tests_inl.hpp:775);
a simple image processing pipeline (including gapi::BGR2Gray conversion usage) can be seen in modules/gapi/samples/api_example.cpp.

1 Like