Skip to content
Snippets Groups Projects
Commit aab1c89e authored by Zhaoliang Zheng's avatar Zhaoliang Zheng
Browse files

parameterized april tag size

parent 554b3091
No related merge requests found
......@@ -18,7 +18,6 @@ def get_AT_6DOF_info(url):
rx = [0.0,0.0,0.0]
ry = [0.0, 0.0, 0.0]
rz = [0.0, 0.0, 0.0]
header = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36."}
req = Request(url, headers=header)
......@@ -37,7 +36,8 @@ def get_AT_6DOF_info(url):
fy = 600
cx = 400
cy = 300
results = detector.detect(gray_image, estimate_tag_pose=True, camera_params=[fx, fy, cx, cy], tag_size=0.16)
AT_size = 0.16
results = detector.detect(gray_image, estimate_tag_pose=True, camera_params=[fx, fy, cx, cy], tag_size=AT_size)
debug_print = 0
for r in results:
# extract the bounding box (x, y)-coordinates for the AprilTag
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment