6by9 wrote:Hi All.
This is a quick call for any application or library developers who are using MMAL_ENCODING_RGB24 / MMAL_ENCODING_BGR24, or OMX_COLOR_Format24bitRGB888 / OMX_COLOR_Format24bitBGR888 direct from the camera component under IL or MMAL. Could you respond below?
Please do not reply if you are using raspistillyuv, raspividyuv, V4L2, or PiCamera as those can all be fixed easily. It's the other random 3rd party apps that I'm trying to identify.
In testing some other features I've found that the camera component has swapped RGB for BGR in the enum handling. Ideally I'd like to correct it in the camera component, but that will require updates for anyone using those formats. There will be a mechanism to determine whether the camera is fixed or not, so a client can support old and new firmwares correctly.
I'm developing an application using raspicam_cv 0.1.3 C++ API/G C++/OPENCV3.0/OPENMP/Pi 3B and since updating/upgrading Raspbian/firmware to the latest version on Sunday the Pi Camera V2 NOIR is sending RGB rather than BGR to OPENCV.
Also the field of view may have widened after the firmware upgrade which if so could cause me a major headache as I need to image process a shallow 3D scene at ~mm per pixel resolution from sufficient (fixed) distance to avoid big shadow and slant angle problems. I'm using 1024 x 640 image size at present.