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

Commit

Permalink
Update apriltags3.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarPetrov authored Feb 18, 2019
1 parent 90f1a56 commit edf24c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apriltags3.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,15 +443,15 @@ 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,
quad_sigma=0.0,
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] )

Expand Down

0 comments on commit edf24c4

Please sign in to comment.