From edf24c49ae0b138e6a340fcded8e19f2a70da7c2 Mon Sep 17 00:00:00 2001 From: Aleksandar Petrov <7101799+AleksandarPetrov@users.noreply.github.com> Date: Mon, 18 Feb 2019 13:51:55 +0100 Subject: [PATCH] Update apriltags3.py --- apriltags3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apriltags3.py b/apriltags3.py index ddb300b..7d5b755 100644 --- a/apriltags3.py +++ b/apriltags3.py @@ -443,7 +443,7 @@ def _convert_image(self, img): except: raise Exception('You need cv2 in order to run the demo. However, you can still use the library without it.') - at_detector = Detector(searchpath=['apriltags3'], + at_detector = Detector(searchpath=['apriltags'], families='tag36h11', nthreads=1, quad_decimate=2.0, @@ -451,7 +451,7 @@ def _convert_image(self, img): refine_edges=1, decode_sharpening=0.25) - img = cv2.imread('test_image.png', cv2.IMREAD_GRAYSCALE) + img = cv2.imread('test/test_image.png', cv2.IMREAD_GRAYSCALE) cameraMatrix = numpy.array([336.7755634193813, 0.0, 333.3575643300718, 0.0, 336.02729840829176, 212.77376312080065, 0.0, 0.0, 1.0]).reshape((3,3)) camera_params = ( cameraMatrix[0,0], cameraMatrix[1,1], cameraMatrix[0,2], cameraMatrix[1,2] )