The IP Camera Capture sample uses the IP camera interface, if available, on NVIDIA DRIVE™ platforms. The sample opens an X window showing the input from the first ethernet camera on the selected IP and port.
For information about the physical location of the ports on NVIDIA DRIVE platforms, see "Camera Setup under Configuration and Setup" in NVIDIA DRIVE 5.1 Development Guide. Please see also Camera Setup (P2379) in NVIDIA DRIVE 5.1 Linux PDK Development Guide After running camera applications on Xavier A, before running on Xavier B (not slave), you must disable FRSYNC and the forward/reverse control channel of the Xavier A aggregator (see document above mentioned)
An example of how to run the application is:
./sample_camera_ip --camera-host=127.0.0.1 --camera-port=10000
--number-of-cameras=1
camera-port defines the port that camera data will be sent via simulator. It accepts the exact number of ports defined by number-of-cameras. Use comma to separate the port, e.g. --camera-port=10000,10002,10003. The port for each camera can be found here: Front=10000 Right=10002 Rear=10003 Left=10004number-of-cameras the number of cameras user wants this program to connect.Screenshots can be captured by pressing s while the sample is running.
NOTE: If you have multiple GPUs, make sure CUDA_VISIBLE_DEVICES and DISPLAY are set appropriately to be the same GPU that is running the simulator engine. i.e. CUDA_VISIBLE_DEVICES=1 DISPLAY=:0.0 ./sample_camera_ip –camera-host=127.0.0.1 –camera-port=10000