Hey everyone, I’m running into a stubborn issue with my Arducam IMX219 Multi-Camera Kit on a Jetson AGX Orin. I’m trying to get all 6 cameras working in a 2x3 surveillance grid, but Camera 5 (sensor-id=5) refuses to cooperate.
All the cameras and cables work fine when I test them individually on other ports, so the hardware itself seems okay — it’s just that specific port/slot that won’t play ball.
I followed the official quick start guide here:
https://docs.arducam.com/Nvidia-Jetson-Camera/Nvidia-Jetson-Orin-Series/NVIDIA-Jetson-AGX-Orin/Quick-Start-Guide/
Here’s the Python script I’m using with OpenCV and GStreamer:
import cv2
import numpy as np
def create_pipeline(sensor_id, width=640, height=480, framerate=30):
return (
f"nvarguscamerasrc sensor-id={sensor_id} ! "
f"video/x-raw(memory:NVMM), width={width}, height={height}, format=NV12, framerate={framerate}/1 ! "
"nvvidconv ! video/x-raw, format=BGRx ! "
"videoconvert ! video/x-raw, format=BGR ! appsink"
)
def main():
sensor_ids = [0, 1, 2, 3, 4, 5]
cams = [cv2.VideoCapture(create_pipeline(sensor_id), cv2.CAP_GSTREAMER) for sensor_id in sensor_ids]
for i, cap in enumerate(cams):
if not cap.isOpened():
print(f"Camera {sensor_ids[i]} could not be opened")
return
print("All cameras successfully opened. Press 'q' to exit.")
while True:
frames = []
for i, cap in enumerate(cams):
ret, frame = cap.read()
if not ret or frame is None:
print(f"Camera {sensor_ids[i]} is not providing a frame")
frames.append(np.zeros((300, 400, 3), dtype=np.uint8))
else:
frames.append(cv2.resize(frame, (400, 300)))
if len(frames) != len(sensor_ids):
break
row1 = np.hstack(frames[:3])
row2 = np.hstack(frames[3:])
combined_frame = np.vstack([row1, row2])
cv2.imshow("Surveillance View (2x3 Grid)", combined_frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
for cap in cams:
cap.release()
cv2.destroyAllWindows()
if __name__ == "__main__":
main()
It always fails right at the cap.isOpened() check for sensor-id=5. The other five cameras open and stream without any issues. Has anyone else seen a single port on this board just not work? Anything else I should try before assuming the board is defective?