openvino.opset17.rgb_to_nv12#
- openvino.opset17.rgb_to_nv12(arg: Node | int | float | ndarray, single_plane: bool = True, name: str | None = None) Node#
Return a node which performs RGBtoNV12 operation.
- Parameters:
arg – The node providing data for the operation in RGB format (NHWC layout).
single_plane – If True, output is single plane NV12 [N, H*3/2, W, 1]. If False, output has two planes: Y [N, H, W, 1] and UV [N, H/2, W/2, 2].
name – The optional name for the created output node.
- Returns:
The new node performing RGBtoNV12 operation.