Inconsistency between distance values and units
katsunori-waragai opened this issue · 2 comments
katsunori-waragai commented
Preliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues.
- This issue is not a question, feature request, or anything other than a bug report directly related to this project.
Description
I found an nconsistency between distance values and units in zed-sdk/object detection/birds eye viewer/python/cv_viewer/tracking_viewer.py
I executed
zed-sdk/object detection/birds eye viewer/python/object_detection_birds_view.py
.
And find distance "0.0M" in "ZED| 3D View tracking" window when I stand 3.0 m distatnce.
tracking_viewer.py:127: text = "{:.1f}M".format(abs(obj.position[2] / 1000.0))
should be
tracking_viewer.py:127: text = "{:.1f}M".format(abs(obj.position[2]))
After that change I got about 3 m distance.
Steps to Reproduce
- change directory and run the script.
cd zed-sdk/object detection/birds eye viewer/python
python object_detection_birds_view.py
- Have someone stand 3 meters in front of the camera.
- view "ZED| 3D View tracking" window, and check distance value.
Expected Result
about "3.0M" distance.
Actual Result
"0.0M"
ZED Camera model
ZED2i
Environment
OS: Ubuntu20
CPU: ARM
GPU: Nvidia Jetson AGX Orin
ZED SDK version: 4.0
Anything else?
No response
mattrouss commented
Thank you for reporting this.
This will be fixed in the next release of samples.
mattrouss commented
Fixed in the latest PR, closing