fix: wrong arg order for clipping

This commit is contained in:
Laureηt 2023-01-20 14:38:31 +01:00
parent 005ee85d38
commit 61c6baed4f
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI

View file

@ -67,8 +67,7 @@ class ActiveBodyPart(BodyPart):
vertical = np.linalg.norm(top - bottom)
horizontal = np.linalg.norm(right - left)
active_ratio = np.clip(0, 1, horizontal / vertical * 4)
print(active_ratio)
active_ratio = np.clip(horizontal / vertical * 4, 0.1, 1)
self.nominal_box = (
np.array(