Hi,
I am working on the object detection samples which are provided in python. (newest SDK version)
Everything seems to work fine until I want to call the CameraInformation
parameters camera_resolution
or camera_configuration
:
camera_infos = zed.get_camera_information()
# can't find camera_resolution:
camera_infos.camera_resolution.width
Error message:
AttributeError: 'pyzed.sl.CameraInformation' object has no attribute 'camera_resolution'
The same problem with:
zed.get_camera_information().camera_configuration
I am using Pycharm as an IDE
1 Like
Hello and thank you for contacting us,
We just updated our GitHub, it was outdated before. You should probably try with the updated samples.
Regards,
Antoine Lassagne
Senior Developer - ZED SDK
Stereolabs Support
But I am using already the newest SDK version with the newest samples from:
Maybe the error is because Iam working inside a virtual environment?
EDIT:
1.) I’ve tested the sample program on several IDEs but the problem persists
2.) I’ve seen here on github that another similar issue was published last week
Indeed ! I’ll find this bug and keep you updated.
1 Like
Hi again,
The sample is outdated, I don’t think there is a bug in the wrapper. camera_infos do not contains resolutions anymore.
Can you replace
point_cloud_res = sl.Resolution(min(camera_infos.camera_resolution.width, 720)
with
point_cloud_res = sl.Resolution(min(camera_infos.camera_configuration.resolution.width, 720)
1 Like
The samples on github are still not updated on the master branch. When is this going to happen?
SL-PY
April 25, 2023, 4:33pm
8
Now it is updated and you should be able to run the samples
2 Likes