HandTrackingModule.py
def findHands(self, img, draw=True):
        """
        Given a Image, process landmark tracking and optionally draw a skelleton
        """
        imgRGB = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
        self.results = self.hands.process(imgRGB)

        if self.results.multi_hand_landmarks:
            for handLms in self.results.multi_hand_landmarks:
                if draw:
                    self.mpDraw.draw_landmarks(
                        img, handLms, self.mpHands.HAND_CONNECTIONS
                    )

        return img

        Given a Image, process landmark tracking and optionally draw a skelleton
        
Given a Image, process landmark tracking and optionally draw a skelleton
Given a Image process landmark tracking and optionally draw a skelleton
def findHands(self, img, draw=True):
        imgRGB = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
        self.results = self.hands.process(imgRGB)
        if self.results.multi_hand_landmarks:
            for handLms in self.results.multi_hand_landmarks:
                if draw:
                    self.mpDraw.draw_landmarks(
                        img, handLms, self.mpHands.HAND_CONNECTIONS
                    )
        return img
def findHands ( self , img , draw = True ) : imgRGB = cv2 . cvtColor ( img , cv2 . COLOR_BGR2RGB ) self . results = self . hands . process ( imgRGB ) if self . results . multi_hand_landmarks : for handLms in self . results . multi_hand_landmarks : if draw : self . mpDraw . draw_landmarks ( img , handLms , self . mpHands . HAND_CONNECTIONS ) return img
Given a Image, process landmark tracking and optionally draw a skelleton
Given a Image process landmark tracking and optionally draw a skelleton
"""
        Given a Image, process landmark tracking and optionally draw a skelleton
        """
self
img
draw