Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial commit #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion inference/hsv_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def add_non_black_pixels_count_in_filter(

def predict_img(self, img: np.ndarray) -> str:
"""
Gets the filter with most non blakc pixels on img and returns its name.
Gets the filter with most non black pixels on img and returns its name.

Parameters
----------
Expand Down
Binary file added output_vids/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion soccer/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, home: Team, away: Team, fps: int = 30):
# Amount of consecutive frames new team has to have the ball in order to change possession
self.possesion_counter_threshold = 20
# Distance in pixels from player to ball in order to consider a player has the ball
self.ball_distance_threshold = 45
self.ball_distance_threshold = 30
self.fps = fps
# Pass detection
self.pass_event = PassEvent()
Expand Down
2 changes: 1 addition & 1 deletion soccer/pass_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def __init__(self) -> None:
self.init_player_with_ball = None
self.last_player_with_ball = None
self.player_with_ball_counter = 0
self.player_with_ball_threshold = 3
self.player_with_ball_threshold = 1
self.player_with_ball_threshold_dif_team = 4

def update(self, closest_player: Player, ball: Ball) -> None:
Expand Down
Binary file added videos/.DS_Store
Binary file not shown.