Skip to content

Help can not open camera using python script #247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
yslbit opened this issue Mar 25, 2025 · 0 comments
Open
2 tasks done

Help can not open camera using python script #247

yslbit opened this issue Mar 25, 2025 · 0 comments

Comments

@yslbit
Copy link

yslbit commented Mar 25, 2025

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant