Detect camera inputs

Hi,

I have a software for video streaming that will be running on different platforms like Nano, Xavier and Xavier NX… etc.
Is it possible to detect with some tool or package how many sensors CSI, or Cameras inputs the device have connected? or available?

Check the v4l-utils, command as below.

v4l2-ctl --list-devices

Would that command list CSI devices on the board?

That command list all of the camera connect to the board include the USB camera.

Is there any API to get the cameras in python?

Have a reference to below code.

1 Like

thx