HandTrackingModule.py
def fingersUp(self):
        """
        Return bool[5] weather each tip finger is on top of its pip articulation
        """
        fingers = []
        # Thumb
        if self.lmList[self.tipIds[0]][1] < self.lmList[self.tipIds[0] - 1][1]:
            fingers.append(1)
        else:
            fingers.append(0)

        # Fingers
        for id in range(1, 5):
            if self.lmList[self.tipIds[id]][2] < self.lmList[self.tipIds[id] - 2][2]:
                fingers.append(1)
            else:
                fingers.append(0)

        return fingers

        Return bool[5] weather each tip finger is on top of its pip articulation
        
Return bool[5] weather each tip finger is on top of its pip articulation
Return bool [ 5 ] weather each tip finger is on top of its pip articulation
def fingersUp(self):
        fingers = []
        if self.lmList[self.tipIds[0]][1] < self.lmList[self.tipIds[0] - 1][1]:
            fingers.append(1)
        else:
            fingers.append(0)
        for id in range(1, 5):
            if self.lmList[self.tipIds[id]][2] < self.lmList[self.tipIds[id] - 2][2]:
                fingers.append(1)
            else:
                fingers.append(0)
        return fingers
def fingersUp ( self ) : fingers = [ ] if self . lmList [ self . tipIds [ 0 ] ] [ 1 ] < self . lmList [ self . tipIds [ 0 ] - 1 ] [ 1 ] : fingers . append ( 1 ) else : fingers . append ( 0 ) for id in range ( 1 , 5 ) : if self . lmList [ self . tipIds [ id ] ] [ 2 ] < self . lmList [ self . tipIds [ id ] - 2 ] [ 2 ] : fingers . append ( 1 ) else : fingers . append ( 0 ) return fingers
Return bool[5] weather each tip finger is on top of its pip articulation
Return bool [ 5 ] weather each tip finger is on top of its pip articulation
"""
        Return bool[5] weather each tip finger is on top of its pip articulation
        """ # Thumb # Fingers
self