null-none / tactics-drawer

Tactics Drawer

Repository from Github https://github.comnull-none/tactics-drawerRepository from Github https://github.comnull-none/tactics-drawer

tactics-drawer

Tactics Drawer

import cv2

from tactics_drawer.utils import TacticsDrawer

pitch = TacticsDrawer(cv2.imread("pitch.png"))

pitch.draw_arrow((100, 100), (200, 150), color="green")
pitch.draw_filled_circle((50, 50), radius=12, color="red")
pitch.draw_cross((150, 150), size=10, color="green")

pitch.save("annotated_output.jpg")

About

Tactics Drawer

License:MIT License


Languages

Language:Python 100.0%