Individual cameras on CSI1 and CSI2 work fine in sample_vicap, but freeze if both used at the same time.

Viewed 43

Hello, I have two OVM6211 cameras connected to CSI1 and CSI2 of a CanMV-K230-V1.1 board. The sd card has the k230_sdk image most likely version 1.9, compiled from source with my custom camera drivers, and I followed the instructions for adding new camera sensors.

When I run

./sharefs/app/sample_vicap.elf -mode 1 -conn 1 -dev 0 -sensor 81 -chn 0 -ow 400 -oh 400

the output looks perfect. This is with the camera cofigured for 400x400 at 120fps. I also have tested the same command with sensor 82, which is the other CSI port, and the same result. However, when I run

./sharefs/app/sample_vicap.elf -mode 1 -conn 1 -dev 0 -sensor 81 -chn 0 -ow 400 -oh 400 -dev 1 -sensor 82 -chn 0 -ow 400 -oh 400

I get two frozen frames, with some visual artifacts.

Things I have tried:

  • Just in case it was a framerate issue, I added sensors 83 and 84 with 400x400 at 60fps, but the same result as above. Only difference is that now the two frozen frames have white noise and lots of artifacts
  • I checked for ISP bandwidth limitation, the specs say it can do 8MP@30fps, or 240MP/s. My two cameras are 2 * 400*400 * 120 = 38.4MP/s so I think it should be fine. 60fps should be even easier.
  • Not sure if it matters but all ISP stages are disabled and bypassed

I am not sure what to try next, can someone please suggest some options? Thank you.

1 Answers

能发一下你们测试出来的效果图吗,最好是提供单独一路的效果和两路运行的效果,我需要看一下现象来猜测是哪块出现的问题。
或者你可以先尝试关闭3dnr 试试,运行命令如下:
./sharefs/app/sample_vicap.elf -mode 1 -conn 1 -dev 0 -sensor 81 -dnr 0 -chn 0 -ow 400 -oh 400 -dev 1 -sensor 82 -dnr 0 -chn 0 -ow 400 -oh 400