相机出图问题

您好,我现在四个鱼眼都能出图,但是偶尔有会出现视频中的现象。视频和图像如附件

hello 550399056,

let’s narrow down the issue, did you have post-processing to compose 4 fish-eye output frames?
if yes, please check whether it reproduced without post-processing.

是的,现在通过libnvargus 取图,然后把四张图弄到一起了。没有后处理的时候效果也是一样的。

hello 550399056,

per your screen shot, is this abnormal line occur on specific camera frame only?

我们测试发现目前只在一个特定相机上出现这个异常现象。相机我们也做交换过测试了,证明相机是没问题的。

hello 550399056,

please let us know which CSI port it’s used.
since it’s occur on specific camera, please also dig into kernel logs for checking any suspicious failures.

我们出现这个问题的相机是CSI1 。我看内核也没有任何报错,这个怎么进行排查呢?

hello 550399056,

please refer to developer guide Verifying the V4L2 Sensor Driver, please running a v4l2-compliance test to examine your sensor driver.
you may see-also Applications Using V4L2 IOCTL Directly to use V4L2 IOCTL to verify basic camera functionality,
for instance, please dump the frame to ensure the corruption is caused by Argus level.

基础功能没问题啊, 这个V4L2 接口也存图使用过了,可以正常出图。

现在的问题是偶尔有一个特定的相机,图片中会有不正常的数据。这个我觉得不太是硬件驱动这块的问题了。

上面有个视频片段,基本流是没问题的。

hello 550399056,

please double check Sensor Pixel Clock, which must be set correctly to avoid potential issues.

四个相机配置都是一样的,相机也完全一样。如果像素时钟配置有问题,应该不会是出现在那一个特定的相机吧

hello 550399056,

please check anyways, you may try configure slightly higher clock rate for testing.
BTW, since CSI0 D1 and CSI1 D0 P/N will always been swizzled for P/N on Orin Nano.
please use device tree property, lane_polarity to configure a polarity swap on any lane.

我CSI0 和CSI1对应的sensor mode中都加上了:
lane_polarity = “6”;

并且按照我的理解:
如果这个配置错误了,只会有出图和不出图的问题。不会有图片质量的问题吧?

hello 550399056,

actually, it should be lane_polarity = "2"; for CSI-A, lane_polarity = "4"; for CSI-B.
please also share the camera device tree for cross check.

按照你描述的修改后,CSI0直接获取不到图像了。 我记得这个设置为 lane_polarity = “6”;

是看了很多人都这么设置的,并且获取视频流也没有问题。

你能内部确认下吗?

hello 550399056,

it should be the issue on sensor streaming instead of CSI issue.
we’ve Raspberry Pi Camera, IMX219 that use CSI1 never seen such issue.

since you’ve confirm it happened on specific camera node only,
let’s check the stream stability, you may try running with below, it’ll report frame-rate for every second.
for instnace,
$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=960,height=960,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap

关于这个的设置 lane_polarity = “6”,有反馈吗?

hello ,
我们发现不出流,或者出图错误时,时序图如下:

正确时:时序如下:

请问下这是什么原因造成的?

Hi, for such unstable issue, from hardware side, please check your sch/layout design based on the routing guideline in Design Guide and also the reference schematic/layout of devkit carrier P3768_A04 board. Especially be careful to the possible noise caused by other high speed signals. Also please check the LP-11, LP-01, LP-00 based on D-PHY spec since it looks uncorrect in your waveform.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.