Matthias Bisping 9fd87aff8e Refactoring: Move
- Move random plot into its own module
- Move geometric predicates into their own module
2023-02-01 18:08:45 +01:00

14 lines
303 B
Python

from cv_analysis.utils.rectangle import Rectangle
def is_square_like(box: Rectangle):
return box.width / box.height > 0.5 and box.height / box.width > 0.5
def is_wide(box: Rectangle):
return box.width / box.height > 1.5
def is_tall(box: Rectangle):
return box.height / box.width > 1.5