From c468833a0b56480d12d9f262167e5d807b6612e4 Mon Sep 17 00:00:00 2001 From: raiot Date: Sun, 30 Jun 2024 15:49:40 +0800 Subject: [PATCH] style: project structure --- .gitignore | 1 + README.md | 2 ++ .../Snipaste_2024-06-22_21-30-43.png | Bin test.py | 14 -------------- 4 files changed, 3 insertions(+), 14 deletions(-) rename Snipaste_2024-06-22_21-30-43.png => docs/Snipaste_2024-06-22_21-30-43.png (100%) delete mode 100644 test.py diff --git a/.gitignore b/.gitignore index 1c430c9..9bc8350 100644 --- a/.gitignore +++ b/.gitignore @@ -194,4 +194,5 @@ pyrightconfig.json data/ +test.py # End of https://www.toptal.com/developers/gitignore/api/python,visualstudiocode \ No newline at end of file diff --git a/README.md b/README.md index 980a4b0..1060402 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ python agent.py 在无人机底部摄像头检测到无人船上的 Apriltag 后,无人机将开始降落。在降落过程中,无人机将尝试保持在无人船正上方,并在降落过程中调整自身位置,以确保安全降落。 +### + ## License USVLander 根据 MIT 许可证发布。这意味着您可以自由地使用、修改和分发该软件,但您必须包含原始作者的版权声明和许可声明。 diff --git a/Snipaste_2024-06-22_21-30-43.png b/docs/Snipaste_2024-06-22_21-30-43.png similarity index 100% rename from Snipaste_2024-06-22_21-30-43.png rename to docs/Snipaste_2024-06-22_21-30-43.png diff --git a/test.py b/test.py deleted file mode 100644 index 266df51..0000000 --- a/test.py +++ /dev/null @@ -1,14 +0,0 @@ -import pupil_apriltags as apriltag -import cv2 - -tag_detector = apriltag.Detector(families='tag36h11') - -img = cv2.imread('Snipaste_2024-06-22_21-30-43.png') -# cv2.imshow('aaa', img) -# print(img.shape) -tag = tag_detector.detect(img[:,:,0], estimate_tag_pose=True, camera_params=([353.836278849487, 353.077028029136, 163.745870517989, 115.130883974855]), tag_size=0.018) - -for t in tag: - if t.tag_id == 0: - print(t.pose_t) - print(t.tag_id) \ No newline at end of file