From 6775e038b3f28811128131c3087d6e22cdb75ff8 Mon Sep 17 00:00:00 2001 From: Aleksandar Petrov Date: Wed, 17 Apr 2019 14:02:05 +0200 Subject: [PATCH] apriltags update, invalid pointer fix --- apriltags | 2 +- apriltags3.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apriltags b/apriltags index a5ab81d..7955e00 160000 --- a/apriltags +++ b/apriltags @@ -1 +1 @@ -Subproject commit a5ab81dd79fd294b77940efad889a820509e83ae +Subproject commit 7955e0021cb2494d5b8819852203f1bf69a9dd6e diff --git a/apriltags3.py b/apriltags3.py index 25ec195..0cceede 100644 --- a/apriltags3.py +++ b/apriltags3.py @@ -379,7 +379,6 @@ def detect(self, img, estimate_tag_pose=False, camera_params=None, tag_size=None fy=camera_fy, cx=camera_cx, cy=camera_cy) - pose = _ApriltagPose() self.libc.estimate_tag_pose.restype = ctypes.c_double @@ -441,7 +440,7 @@ def _convert_image(self, img): except: raise Exception('You need yaml in order to run the tests. However, you can still use the library without it.') - at_detector = Detector(searchpath=['apriltags'], + at_detector = Detector(searchpath=['apriltags/lib'], families='tag36h11', nthreads=1, quad_decimate=1.0, @@ -514,6 +513,7 @@ def _convert_image(self, img): start = time.time() tags = at_detector.detect(img, True, camera_params, parameters['rotation_test']['tag_size']) + time_sum+=time.time()-start time_num+=1