diff --git a/modules/GestureLibs/GestureDetector.py b/modules/GestureLibs/GestureDetector.py index 13fd7bc0d3c238053d310366db03ea007db1e1b4..f97e7324e0564e187666c67cd3473cde6ed370f8 100644 --- a/modules/GestureLibs/GestureDetector.py +++ b/modules/GestureLibs/GestureDetector.py @@ -173,12 +173,12 @@ class GestureDetector: def match_gesture(self): # Match previous information to a gesture - DirectionsList = [] + DirectionsList = [fingertip.direction for fingertip in self.FingerTipsData] GestureDirection = "" - for fingertip in self.FingerTipsData: - DirectionsList.append(fingertip.direction) - print("Directions", DirectionsList) +# for fingertip in self.FingerTipsData: +# DirectionsList.append(fingertip.direction) +# print("Directions", DirectionsList) # To find the majority of the directions of fingers, the fingers direction have to be mapped to an integer value DirectionsList = convert_dir_id(DirectionsList)