Update README.md
Browse files
README.md
CHANGED
|
@@ -117,7 +117,7 @@ The `loc` field refers to the position of the camera in the blender world coordi
|
|
| 117 |
To convert these coordinates into the familiar COLMAP coordinate system, one can use the following lines of code:
|
| 118 |
|
| 119 |
``` python
|
| 120 |
-
|
| 121 |
colmap_rot = [rot[1], rot[0],
|
| 122 |
rot[3], -rot[2]]
|
| 123 |
colmap_transform = Rotation.from_quat(colmap_rot, scalar_first=True)
|
|
|
|
| 117 |
To convert these coordinates into the familiar COLMAP coordinate system, one can use the following lines of code:
|
| 118 |
|
| 119 |
``` python
|
| 120 |
+
from scipy.spatial.transform import Rotation
|
| 121 |
colmap_rot = [rot[1], rot[0],
|
| 122 |
rot[3], -rot[2]]
|
| 123 |
colmap_transform = Rotation.from_quat(colmap_rot, scalar_first=True)
|