0
0
Computer Visionml~10 mins

MediaPipe Pose in Computer Vision - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to import the MediaPipe pose solution.

Computer Vision
import mediapipe as [1]
Drag options to blanks, or click blank then click option'
Amp
Bmediapipe_pose
Cpose
Dmp_pose
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'mp_pose' or 'pose' as the alias instead of 'mp'.
Trying to import 'mediapipe_pose' which is not a valid module.
2fill in blank
medium

Complete the code to initialize the MediaPipe Pose object with default settings.

Computer Vision
pose = mp.solutions.pose.[1]()
Drag options to blanks, or click blank then click option'
APoseDetector
BPose
CPoseSolution
Dpose
Attempts:
3 left
💡 Hint
Common Mistakes
Using lowercase 'pose' which is not a class.
Using incorrect class names like 'PoseDetector' or 'PoseSolution'.
3fill in blank
hard

Fix the error in the code to process an image and get pose landmarks.

Computer Vision
results = pose.process([1])
Drag options to blanks, or click blank then click option'
Aimg
Bframe
Cimage
Dvideo
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'img' or 'frame' without defining them.
Passing 'video' which is not a single image.
4fill in blank
hard

Fill both blanks to draw pose landmarks on the image.

Computer Vision
mp.solutions.drawing_utils.[1](image, results.[2])
Drag options to blanks, or click blank then click option'
Adraw_landmarks
Bdraw_pose
Cpose_landmarks
Dlandmarks
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'draw_pose' which is not a valid function.
Using 'landmarks' instead of 'pose_landmarks' attribute.
5fill in blank
hard

Fill all three blanks to create a dictionary of landmark indices and their (x, y) coordinates.

Computer Vision
landmark_dict = { [1]: (lm.x, lm.[2]) for i, lm in enumerate(results.pose_landmarks.[3]) }
Drag options to blanks, or click blank then click option'
Alm.name
By
Ci
Dlandmark
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'lm.name' which is not an attribute of landmarks.
Confusing the variable names in the comprehension.