- Can you add some minimal reproducible code? It's hard to say what is going on here.
- The YUV420 is stored as an array of first Y (luma) values and then subsampled U and V (chroma) values. It doesn't have channels. If you do a getData() on 1080p image you will see it has a size of
2,073,600 (1920*1080 Y) + 518,400 (540*960 U) + 518,400 (540*960 V) = 3,110,400 pixels
. It's all in a single channel. The shape of that would be (1620, 1920).
When converting to BGR viagetCvFrame()
the U and V layers are upsampled to Y dimensions and combined together to form BGR (3 channel data).
Thanks,
Jaka