We have included a new unit NV12 to Image in our unit portfolio. This unit converts a raw NV12 (YCbCr 4:2:0) camera buffer to a 3-channel tensor.
NV12 is a planar YCbCr 4:2:0 format commonly produced by cameras and hardware video decoders. It stores a full resolution Y (luma) plane followed by a half-height interleaved CbCr (chroma) plane. The total flat buffer size is Hw3/2 bytes. This unit performs pre-pixel color conversion and chroma upsampling (nearest-neighbor) to produce [H,W,3] unit8 output. The output channel order can be selected: RGB, BGR, or YUV interleaved.
You can connect the raw NV12 buffer from a camera or video source as a flat 1D unit8 tensor and set the Image Width and Image Height options to match the camera resolution. The output is a standard [H,W,3] uint8 image ready for display or further processing.
Overall Bug fixes and increased stability