Skip to content

Commit

Permalink
Merge pull request #16 from truher/main
Browse files Browse the repository at this point in the history
add cx, cy output
  • Loading branch information
truher authored Jan 30, 2025
2 parents f6b88b3 + bd54de6 commit 02cde72
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion raspberry_pi/app/dashboard/real_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,17 @@ def tag(self, image: MatLike, tag: AprilTagDetection, pose: Transform3d) -> None

(c_x, c_y) = (int(tag.getCenter().x), int(tag.getCenter().y))
circle(image, (c_x, c_y), 10, WHITE, -1)
# this is for lens calibration
self.text(
image,
f"cx:{c_x:4.1f} cy:{c_y:4.1f}",
(5, 140),
)

tag_id = tag.getId()
self.text(image, f"id {tag_id}", (c_x, c_y))

# type the translation into the image, in WPI coords (x-forward)

t = pose.translation()
self.text(
image,
Expand Down

0 comments on commit 02cde72

Please sign in to comment.