Skip to content

gapi_NV12toBGR

gapifunctionOpenCV 5.0.0
import { gapi_NV12toBGR } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSsrc_y, src_uv
FUNCTIONgapi_NV12toBGR
RETURN TYPEGMat
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Converts an image from NV12 (YUV420p) color space to BGR. The function converts an input image from NV12 color space to RGB. The conventional ranges for Y, U, and V channel values are 0 to 255.

Output image must be 8-bit unsigned 3-channel image CV_8UC3.

Note: Function textual ID is "org.opencv.imgproc.colorconvert.nv12tobgr"

See: YUV2BGR, NV12toRGB

gapi_NV12toBGR(src_y: GMat, src_uv: GMat): GMat;
src_y

input image: 8-bit unsigned 1-channel image CV_8UC1.

src_uv

input image: 8-bit unsigned 2-channel image CV_8UC2.

Returns

The GMat result. Release returned native handles with using or delete(), including handles nested in results.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.