Skip to content

Commit

Permalink
Merge pull request #129 from umyelab/fix-text-scale
Browse files Browse the repository at this point in the history
Fix text scale in annotated video
  • Loading branch information
rohansatapathy committed Mar 25, 2024
2 parents 2938354 + 9ed9c95 commit 6ffc784
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions LabGym/analyzebehaviors.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,8 @@ def annotate_video(self, behavior_to_include, show_legend=True, interact_all=Fal
print("Annotating video...")
print(datetime.datetime.now())

text_scl = max(min(self.background.shape[0], self.background.shape[1]) / 960, 0.5)
text_tk = max(1, int(min(self.background.shape[0], self.background.shape[1]) / 960))
text_scl = 1
text_tk = 2

if self.categorize_behavior is True:
colors = {}
Expand Down
4 changes: 2 additions & 2 deletions LabGym/analyzebehaviorsdetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1418,8 +1418,8 @@ def annotate_video(self, animal_to_include, behavior_to_include, show_legend=Tru
print("Annotating video...")
print(datetime.datetime.now())

text_scl = max(min(self.background.shape[0], self.background.shape[1]) / 960, 0.5)
text_tk = max(1, int(min(self.background.shape[0], self.background.shape[1]) / 960))
text_scl = 1
text_tk = 2

if self.categorize_behavior is True:
colors = {}
Expand Down

0 comments on commit 6ffc784

Please sign in to comment.