stereolabs / zed-sdk

⚡️The spatial perception framework for rapidly building smart robots and spaces
https://stereolabs.com
MIT License
788 stars 458 forks source link

automatic_region_of_interest.py failed: AttributeError #638

Closed katsunori-waragai closed 1 month ago

katsunori-waragai commented 2 months ago

Preliminary Checks

Description

The following sample scripts in the ZED SDK could not be executed. zed-sdk/depth sensing/automatic region of interest/python/automatic_region_of_interest.py

Steps to Reproduce

  1. git clone git@github.com:stereolabs/zed-sdk.git
  2. cd "depth sensing/automatic region of interest/python"
  3. python3 automatic_region_of_interest.py ...

Expected Result

should not raise error just after starting the script.

Actual Result

python3 automatic_region_of_interest.py 
[Sample] Using default resolution
[2024-06-20 09:32:21 UTC][ZED][INFO] Logging level INFO
[2024-06-20 09:32:22 UTC][ZED][INFO] Using USB input... Switched to default resolution HD720
[2024-06-20 09:32:22 UTC][ZED][INFO] [Init]  Depth mode: NEURAL
[2024-06-20 09:32:23 UTC][ZED][INFO] [Init]  Camera successfully opened.
[2024-06-20 09:32:23 UTC][ZED][INFO] [Init]  Camera FW version: 1523
[2024-06-20 09:32:23 UTC][ZED][INFO] [Init]  Video mode: HD720@60
[2024-06-20 09:32:23 UTC][ZED][INFO] [Init]  Serial Number: S/N 32045770
Press 'a' to apply the ROI
Press 'r' to reset the ROI
Press 's' to save the ROI as image file to reload it later
Press 'l' to load the ROI from an image file
Traceback (most recent call last):
  File "automatic_region_of_interest.py", line 173, in <module>
    main()
  File "automatic_region_of_interest.py", line 108, in main
    roi_param.auto_apply = True
AttributeError: 'pyzed.sl.RegionOfInterestParameters' object has no attribute 'auto_apply'

ZED Camera model

ZED2i

Environment

OS: Ubuntu 20.04 LTS
CPU: ARM
GPU: Nvidia Jetson AGX orin
ZED SDK version: 4.1.1
Other info: JetPack 5.1, python3.8.10

Anything else?

No response

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days