import cv2import mediapipe as melist=[]# Call the camera cap = cv2.VideoCapture(0,cv2.CAP_DSHOW)hand_recognitian = me.solutions.hands.Hands()# Check the camera while (cap.isOpened()): # Get the image of each frame of the camera ret,frame = cap.read() frame= cv2.flip(frame,1) # Convert read image format (rgb) imgs=cv2.cvtColor(frame,cv2.COLOR_BGR2RGB) result =hand_recognitian.process(imgs) # Mark 20 Coordinates of hand points and connection if result.multi_hand_landmarks: for posion in result.multi_hand_landmarks: me.solutions.drawing_utils.draw_landmarks(frame,posion,me.solutions.hands.HAND_CONNECTIONS) for id,lm in enumerate(posion.landmark): h,w,c = imgs.shape cx,cy =int(lm.x*w),int(lm.y*h) list.append([id,cx,cy]) # Display each frame image of the acquired camera cv2.imshow("handes shibie",frame) k = cv2.waitKey(1) # Press the space to enter if k==32: # Turn off camera cap.release() break