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
camera_infos = zed.get_camera_information()
# can't find camera_resolution:
AttributeError: 'pyzed.sl.CameraInformation' object has no attribute 'camera_resolution'
The same problem with:
I am using Pycharm as an IDE
Hello and thank you for contacting us,
We just updated our GitHub, it was outdated before. You should probably try with the updated samples.
Senior Developer - ZED SDK
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?
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.
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)
point_cloud_res = sl.Resolution(min(camera_infos.camera_configuration.resolution.width, 720)
The samples on github are still not updated on the master branch. When is this going to happen?
Now it is updated and you should be able to run the samples