Think you are trying to do something that is unupported by the hardware in Pi models 0-4.
The 'lores' stream is always YUV and only a Pi5 can provide RGB in that stream.
From the documentation...
4. The ISP can produce up to two output images for every input frame from the camera. We designate one of them as
the main image, and it can be in either RGB or YUV formats.
5. The second image is a lower resolution image, referred to often as the "lores" image; it must be no larger than the
main image. On a Pi 4 or earlier device, the lores image must be in a YUV format, whereas on a Pi 5 (or later device)
it can be RGB or YUV, like the main image.
Extracting just the Y portion of each frame and passing that to OpenCV as a single channel grayscale may be an option?
The 'lores' stream is always YUV and only a Pi5 can provide RGB in that stream.
From the documentation...
4. The ISP can produce up to two output images for every input frame from the camera. We designate one of them as
the main image, and it can be in either RGB or YUV formats.
5. The second image is a lower resolution image, referred to often as the "lores" image; it must be no larger than the
main image. On a Pi 4 or earlier device, the lores image must be in a YUV format, whereas on a Pi 5 (or later device)
it can be RGB or YUV, like the main image.
Extracting just the Y portion of each frame and passing that to OpenCV as a single channel grayscale may be an option?
Statistics: Posted by sandyol — Sat Nov 30, 2024 1:36 pm