From 161203d8ddcfa766ff447426d9fa35cb7e2bb33f Mon Sep 17 00:00:00 2001 From: Fanny Lalonde Date: Mon, 14 Sep 2020 10:44:58 -0400 Subject: [PATCH] Change aspect ratio to avg_ver/avg_hor instead of avg_hor/avg_ver --- box_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box_types.py b/box_types.py index 8b7b60d..39e04d8 100644 --- a/box_types.py +++ b/box_types.py @@ -124,7 +124,7 @@ def aspect_ratio(self): avg_hor = (top_side + bottom_side) / 2 avg_ver = (right_side + left_side) / 2 - return (avg_hor + 1e-5) / (avg_ver + 1e-5) + return (avg_ver + 1e-5) / (avg_hor + 1e-5) def pseudo_transcription_length(self): return min(round(0.5+(max(self.aspect_ratio(), 1/self.aspect_ratio()))), 10)