Skip to content

Commit

Permalink
Round numbers in the visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Pbatch committed Sep 6, 2024
1 parent 9b48c25 commit 498c794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clashroyalebuildabot/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _annotate_image(self, image, state):
for det in asdict(state.numbers).values():
det = NumberDetection(**det)
d.rectangle(det.bbox)
self._draw_text(d, det.bbox, str(det.number))
self._draw_text(d, det.bbox, f"{det.number:.2f}")

self._draw_unit_bboxes(d, state.allies, "ally")
self._draw_unit_bboxes(d, state.enemies, "enemy")
Expand Down

0 comments on commit 498c794

Please sign in to comment.