diff options
author | Théo de la Hogue | 2023-10-16 22:37:03 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-10-16 22:37:03 +0200 |
commit | 4c9abeb88568d3725f47ecd1a47ddf74767157e2 (patch) | |
tree | 30204015abd6e0d4bc292a431a594c6eafcd9570 /src | |
parent | 0835382b4b12652e23dcebe2456431c3e625dc3a (diff) | |
download | argaze-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.py | 2 |
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 |