From ca90287a944b83bedb13b97d2fd49458f4e2e4d6 Mon Sep 17 00:00:00 2001 From: Guilherme Affonso Date: Tue, 31 May 2022 12:49:09 +0900 Subject: [PATCH] Skip hand-object interactions when the object is below detection threshold --- src/public_lib/epic_kitchens/hoa/types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/public_lib/epic_kitchens/hoa/types.py b/src/public_lib/epic_kitchens/hoa/types.py index 3a627ad..bc26250 100644 --- a/src/public_lib/epic_kitchens/hoa/types.py +++ b/src/public_lib/epic_kitchens/hoa/types.py @@ -299,6 +299,7 @@ def get_hand_object_interactions( if ( hand_detection.state.value == HandState.NO_CONTACT.value or hand_detection.score <= hand_threshold + or len(object_centers) == 0 ): continue estimated_object_position = (