I managed to connect a 8MP GMSL2 based camera (LI-AR0821) with AR0821 imager and to get the data into the nvidia camera stack and Iam able to stream it h264 encoded using gstreamer. However the picture is very purpleish (see attachment
From Leopard Imaging I got a camera_overrides.isp file and applied it to my Jetson rootfs (/var/nvidia/settings/camera) however according to the purple shades it had no effect on them.
The imager provides a 12 bit bayer pattern with a RCCB CFA, but according to source (sensor common.c) only rggb12 is supported by the nvidia kernel, thus I configured the format to be rggb12 in my device-tree source. Could this be the cause for the purpleish picture? If so, do you have an advise how to get a realistic picture then?
Meanwhile I figured out by modifying the badge- parameter string to contain _ar0820 instead of RBP_194 the ISP override parameters seem to be active (please see attached screenshot). The picture is much clearer now. However there’s still a (more light) purple shade over the whole picture:
that’s right, you should update badge property in device tree to match the unique string in ISP override file.
regarding to the latest capture results… may I know what’s the capture pipeline you’re using?
since this is RCCB format types, which using Clear (C) to replace the Green (G) channel. it looks normal results, or… you may target a color chart to evaluate the results.
besides,
please see-also Camera Architecture Stack. there’s a standard Linux V4L2 application that uses direct kernel IOCTL calls, which bypass ISP. you may capture the raw content with v4l IOCTL.
for instance, Applications Using V4L2 IOCTL Directly.
and… please use 3rdparty tool, such as… 7yuv to examine the content.
Hi @JerryChang
thanks for your sugggestion. 7Yuv seems to be a nice tool.
Meanwhile I got correct camera picture working by contacting Leopard Imaging once again. After applying their ISP file the pixel order “bayer_rggb12” was still incorrect for their sensor. Instead they need bayer_grbg12 in order to assign pixels and colors correctly