0
0
Computer Visionml~10 mins

Why pose estimation tracks body movement in Computer Vision - Test Your Understanding

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

Complete the code to import the library used for pose estimation.

Computer Vision
import [1]
Drag options to blanks, or click blank then click option'
Acv2
Btensorflow
Cnumpy
Dmatplotlib
Attempts:
3 left
💡 Hint
Common Mistakes
Importing tensorflow instead of cv2.
Importing numpy which is for arrays, not pose estimation.
Importing matplotlib which is for plotting.
2fill in blank
medium

Complete the code to read an image for pose estimation.

Computer Vision
image = cv2.[1]('person.jpg')
Drag options to blanks, or click blank then click option'
Aimread
Bimwrite
Cimshow
Dresize
Attempts:
3 left
💡 Hint
Common Mistakes
Using imshow which displays images but does not read them.
Using imwrite which saves images to disk.
Using resize which changes image size.
3fill in blank
hard

Fix the error in the code to detect pose keypoints using a model.

Computer Vision
keypoints = model.[1](image)
Drag options to blanks, or click blank then click option'
Aevaluate
Bfit
Cpredict
Dtrain
Attempts:
3 left
💡 Hint
Common Mistakes
Using train which is for training the model.
Using fit which is also for training.
Using evaluate which checks model performance.
4fill in blank
hard

Fill both blanks to create a dictionary of keypoints with their confidence scores.

Computer Vision
pose_data = {kp['name']: kp[1] for kp in keypoints if kp[2] > 0.5}
Drag options to blanks, or click blank then click option'
A['score']
B['confidence']
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'confidence' which may not exist in the keypoint dictionary.
Using inconsistent keys for filtering and accessing scores.
5fill in blank
hard

Fill all three blanks to calculate the average confidence score of detected keypoints.

Computer Vision
avg_score = sum(kp[1] for kp in keypoints if kp['score'][2] 0.5) / len([kp for kp in keypoints if kp['score'][3] 0.5])
Drag options to blanks, or click blank then click option'
A['score']
B>
D['confidence']
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'confidence' instead of 'score'.
Using '<' instead of '>' for filtering.