Media pipe pose tutorial 순서
1. Install and Import Dependencies
2. Make Detections
3. Determining Joints
4. Calculate Angles
5. Curl Counter
pip install mediapipe opencv-python
import cv2
import mediapipe as mp
import numpy as np
mp_drawing = mp.solutions.drawing_utils
mp_pose = mp.soultions.pose
→ drawing utilites, visualizing
→ importing(grabbing) our pose estimation model
test our a feed from our webcam
#VIDEO FEED
cap = cv2.VideoCapture(0)
→ grabbing or setting up our video, capture
→ image must have three dimensions
accessing our webcam starting to loop reading our webcam feed and then visualizing
break of our feed or clear our feed
while cap.isOpened():
ret, frame = cap.read()
cv.imshow('Mediapipe Feed', frame)
if cv2.waitKey(10) & 0xFF == ord('q')
cap.release()
cv2.destroyAllWindows()
→ loop through our particular feed
→ fram is actually going to give us the image from our webcam
→ imshow : visualize