aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2023-10-16 22:37:03 +0200
committerThéo de la Hogue2023-10-16 22:37:03 +0200
commit4c9abeb88568d3725f47ecd1a47ddf74767157e2 (patch)
tree30204015abd6e0d4bc292a431a594c6eafcd9570 /src
parent0835382b4b12652e23dcebe2456431c3e625dc3a (diff)
downloadargaze-4c9abeb88568d3725f47ecd1a47ddf74767157e2.zip
argaze-4c9abeb88568d3725f47ecd1a47ddf74767157e2.tar.gz
argaze-4c9abeb88568d3725f47ecd1a47ddf74767157e2.tar.bz2
argaze-4c9abeb88568d3725f47ecd1a47ddf74767157e2.tar.xz
Using SolvePnP with flag 3.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/ArUcoMarkers/ArUcoMarkersGroup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argaze/ArUcoMarkers/ArUcoMarkersGroup.py b/src/argaze/ArUcoMarkers/ArUcoMarkersGroup.py
index d30a730..dddead4 100644
--- a/src/argaze/ArUcoMarkers/ArUcoMarkersGroup.py
+++ b/src/argaze/ArUcoMarkers/ArUcoMarkersGroup.py
@@ -371,7 +371,7 @@ class ArUcoMarkersGroup():
raise ValueError(f'Marker {marker.identifier} doesn\'t belong to the group.')
# Solve
- success, rvec, tvec = cv2.solvePnP(numpy.array(places_corners_3d), numpy.array(markers_corners_2d), numpy.array(K), numpy.array(D), flags=0)
+ success, rvec, tvec = cv2.solvePnP(numpy.array(places_corners_3d), numpy.array(markers_corners_2d), numpy.array(K), numpy.array(D), flags=3)
self._translation = tvec.T
self._rotation = rvec.T