Comments (5)
Please checkout the following files:
- https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/helpers/box3dImageTransform.py
- https://github.com/mcordts/cityscapesScripts/blob/master/docs/Box3DImageTransform.ipynb
- https://github.com/mcordts/cityscapesScripts/blob/master/docs/csCalibration.pdf
and see
All GT annotations are given in the ISO coordinate system V and hence, the evaluation requires the data to be available in this coordinate system.
. The used Euler angles are the ones in coordinate system V.
from cityscapesscripts.
@ncgaehle Thank you very much for your reply. The definition of yaw-pitch-roll is important for me because I am considering the transformation between the local yaw-pitch-roll angles and global yaw-pitch-roll angles.
I have read these files before and since there is still no clear definition of the yaw, pitch and roll in them may I confirm whether my understanding is correct:
For rotation_V
obtained from box3d_annotation.get_parameters(coordinate_system=CRS_V)
, we can get yaw, pitch and roll by transforming the quaternion into Eular angles with rotation_V.yaw_pitch_roll
. The obtained yaw is defined as the angle between vehicle direction and x-axis (on x-y plane), pitch is the angle between vehicle direction and z-axis (on z-x plane), roll is the angle between vehicle direction and y-axis (on z-y plane).
After we get rotation_S
with box3d_annotation.get_parameters(coordinate_system=CRS_S)
, we can get yaw, pitch and roll by transforming the quaternion into Eular angles with rotation_S.yaw_pitch_roll
.
Here (under CRS_S), the obtained yaw is defined as the angle between vehicle direction and z-axis (under z-x plane), the pitch is the angle between vehicle direction and the negative y-axis (y-z plane), roll is the angle between vehicle direction and negative x-axis (on x-y plane).
If so the definition of this yaw is different from that used in mmdetection3D, right?
Your help is really appreciated!
from cityscapesscripts.
CRS_V is the coordinate frame in which all calculations (including yaw, pitch, and roll) are done for the evaluation. In CRS_V it is like this:
Please note, that the coordinate frame in this image is different than CRS_V. It's just to visualize what "yaw", "pitch", and "roll" means: in particular "yaw" is the heading while "pitch" is how much the nose is pointing upwards or downwards. Finally, "roll" refers to the inclination to the left or right.
If you do the calculations in another coordinate frame the angles for sure are different.
from cityscapesscripts.
@ncgaehle thank you. I understand the concept of these three angles. But I am not sure about the exact definition of them in CRS_V e.g. the definition of yaw in CRS_V can be the angle between the vehicle direction and x-axis (on x-y plane), or the angle between the vehicle direction and negative y-axis (on x-y plane), this should influence how we calculate the gobal-local yaw transformation, right?
As a reference, in MMdetection3D the camera coordinate system defines this yaw angle explicitly:
from cityscapesscripts.
As described, "yaw" is the rotation around the z axis in CRS V. Yaw = 0 means a vehicle is moving in the same direction as the x axis.
"roll" is the rotation around the x axis, and "pitch" around the y axis.
from cityscapesscripts.
Related Issues (20)
- convert to kitti format HOT 3
- Transformation Matrix from V to C
- help I don't know where looking for solve my problem HOT 2
- What is "<root_path>" HOT 1
- Slow download speed of foggy cityscapes (leftImg8bit_trainvaltest_foggy.zip)
- What changes do I need to do to add new images to the dataset locally?
- Dimension for depth in Equation 1 in csCalibration (pzV vs pxV)
- How to get stuffthingmaps in cityscapes dataset like in coco dataset?
- Help: The download of leftImg8bit_ sequence_trainvaltest.zip dataset is interrupted!! HOT 1
- Regading the license for the scripts HOT 1
- [Download Issue] leftImg8bit_trainval_foggyDBF Interrupt
- About Public Result HOT 2
- Error in cityscapesViewer.py HOT 1
- Annotations format in createPanopticImgs.py
- Bug in create panoptic segmentation
- demoVideo labeled images
- Absolute Time Available?
- gtFine_trainvaltest_foggy
- What does this do when calculate the union area.
- [BUG]: Instance Train ID Images HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cityscapesscripts.