zed-python-api
zed-python-api copied to clipboard
Help can not open camera using python script
Preliminary Checks
- [x] This issue is not a duplicate. Before opening a new issue, please search existing issues.
- [x] This issue is not a question, bug report, or anything other than a feature request directly related to this project.
Proposal
I have tried using python script to open camera. But i always get a error report as follows: [2025-03-25 06:02:09 UTC][ZED][INFO] Logging level INFO [2025-03-25 06:02:09 UTC][ZED][INFO] Logging level INFO [2025-03-25 06:02:09 UTC][ZED][INFO] Logging level INFO [2025-03-25 06:02:09 UTC][ZED][INFO] [Init] Depth mode: PERFORMANCE [2025-03-25 06:02:10 UTC][ZED][ERROR] [Init] Unable to capture images. Consider trying a lower resolution and/or FPS [2025-03-25 06:02:10 UTC][ZED][INFO] [Init] Failed to open camera. Trying to re-open for 5 seconds. [2025-03-25 06:02:10 UTC][ZED][INFO] [Init] Random wait interval before consecutive openings: [250], [1500] msec. [2025-03-25 06:02:10 UTC][ZED][INFO] [Init] Waiting 1074 msec before next opening attempt. [2025-03-25 06:02:11 UTC][ZED][INFO] [Init] Timeout in 3355msec [2025-03-25 06:02:11 UTC][ZED][INFO] [Init] Opening Camera. Attempt #2 [2025-03-25 06:02:12 UTC][ZED][ERROR] [Init] Unable to capture images. Consider trying a lower resolution and/or FPS [2025-03-25 06:02:12 UTC][ZED][INFO] [Init] Waiting 542 msec before next opening attempt. [2025-03-25 06:02:12 UTC][ZED][INFO] [Init] Trying to force a device reboot to recover the video module. [2025-03-25 06:02:15 UTC][ZED][INFO] [Init] Camera opening timeout reached. [2025-03-25 06:02:15 UTC][ZED][WARNING] LOW USB BANDWIDTH in sl::ERROR_CODE sl::Camera::open(sl::InitParameters) ZED failed to open [2025-03-25 06:02:15 UTC][ZED][ERROR] [ZED] sl::Camera::Open has not been called, no Camera instance running. [2025-03-25 06:02:15 UTC][ZED][ERROR] [ZED] sl::Camera::Open has not been called, no Camera instance running.
To address this issues, i check my usb port: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/5p, 20000M/x2 |__ Port 1: Dev 116, If 0, Class=Hub, Driver=hub/4p, 5000M |__ Port 4: Dev 117, If 1, Class=CDC Data, Driver=cdc_ncm, 5000M |__ Port 4: Dev 117, If 0, Class=Communications, Driver=cdc_ncm, 5000M |__ Port 4: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M |__ Port 5: Dev 126, If 0, Class=Video, Driver=uvcvideo, 5000M |__ Port 5: Dev 126, If 1, Class=Video, Driver=uvcvideo, 5000M
It seems to meet the requirements. Thus this issues, i can not open my camera, help me.
my camera is zed 2i, with ubuntu 22.04. I can use the sdk zed_explore and zed_depth_viewer provided by the platform normally.
Thanks.
Use-Case
No response
Anything else?
No response