The camera cannot be opened

Hello, when i run the code to open the camera, the following error occurs:

[2025-07-16 10:25:46 UTC][ZED][INFO] Logging level INFO
[2025-07-16 10:25:47 UTC][ZED][WARNING] CAMERA STREAM FAILED TO START in sl::ERROR_CODE sl::Camera::open(sl::InitParameters)
Failed to open ZED: CAMERA STREAM FAILED TO START

Process finished with exit code 1

Here’s my code:

import pyzed.sl as sl

# Create a ZED camera object
zed = sl.Camera()

# Set initialization parameters (use defaults)
init_params = sl.InitParameters()

# Open the camera
status = zed.open(init_params)
if status != sl.ERROR_CODE.SUCCESS:
    print("Failed to open ZED:", status)
    exit(1)

# Grab a single image
if zed.grab() == sl.ERROR_CODE.SUCCESS:
    image = sl.Mat()
    zed.retrieve_image(image, sl.VIEW.LEFT)
    print("Frame size:", image.get_width(), "x", image.get_height())
else:
    print("Failed to grab image")

zed.close()

My camera is a ZED X Mini, connected via a Mono capture card, and the JetPack version is :

# R36 (release), REVISION: 4.3, GCID: 38968081, BOARD: generic, EABI: aarch64, DATE: Wed Jan  8 01:49:37 UTC 2025
# KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia

Hi @eatpockyboy

Can you run the ZED Diagnostic tool and send the JSON report file that it generates?

Thank you very much for your reply. May I ask how I can open the ZED Diagnostic tool? Is there any related documentation I can refer to?

ray@jetson:/usr/local/zed/tools$ ZED_Diagnostic 
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

ZED Diagnostic Tool

Stack trace (most recent call last) in thread 127687:
#9    Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in 
#8    Object "/usr/lib/aarch64-linux-gnu/libc.so.6", at 0xffffa9945edb, in 
#7    Object "/usr/lib/aarch64-linux-gnu/libc.so.6", at 0xffffa98dd5b7, in 
#6    Object "/usr/lib/aarch64-linux-gnu/libstdc++.so.6", at 0xffffa9bb31fb, in 
#5    Object "ZED_Diagnostic", at 0x44cf67, in 
#4    Object "ZED_Diagnostic", at 0x46847f, in 
#3    Object "ZED_Diagnostic", at 0x45461f, in 
#2    Object "ZED_Diagnostic", at 0x446487, in 
#1    Object "/usr/lib/aarch64-linux-gnu/libQt5Gui.so.5", at 0xffffaa441c9f, in QFont::QFont()
#0    Object "/usr/lib/aarch64-linux-gnu/libQt5Gui.so.5", at 0xffffaa376104, in QGuiApplication::font()
Segmentation fault (Address not mapped to object [(nil)])
Segmentation fault (core dumped)

Hi @eatpockyboy
Are you working in headless mode with no display connected?

Hi @Myzhar
Yes, I connected to the Jetson development board via SSH and then executed the command line. Is it necessary to have a display connected? I can try connecting a display and see if that works.
But the code in the first topic was run with a display connected.

Please read this support page for the explanation and the solution to your problem.

Thank you very much for your help. However, the code in the first topic was run with a display connected. I will upload a picture of the device connections later; please help me check it. Thanks again.

I checked the wiring and found no issues. I measured the mono capture card with a thermal imager and found its temperature reached over 130°C. Our EE’s preliminary judgment is that the mono capture card is burned out.

The official documentation states that the input voltage for the mono capture card is 12–19V, and my power supply is 15V 1A. I would like to ask the ZED technical team to help analyze the cause of the mono capture card failure.

Thank you.

I think this is a clear clue of a damaged card. Please write an email to support@stereolab.com