import cv2 import mediapipe as mp video = cv2.VideoCapture(0) h = mp.solutions.hands hands = h.Hands() mp_drawing = mp.solutions.drawing_utils while True: succ, frame = video.read() frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) result = hands.process(frame_rgb) print(result.multi_hand_landmarks) if result.multi_hand_landmarks: for hand_landmarks in result.multi_hand_landmarks: mp_drawing.draw_landmarks(frame, hand_landmarks, h.HAND_CONNECTIONS, mp_drawing.DrawingSpec(color=(0, 255, 0))) cv2.imshow('Video', frame) cv2.waitKey(1)