Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

Commit

Permalink
apriltags update, invalid pointer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarPetrov committed Apr 17, 2019
1 parent 9abbd50 commit 6775e03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apriltags
4 changes: 2 additions & 2 deletions apriltags3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 6775e03

Please sign in to comment.