0
0
Computer Visionml~20 mins

Face landmark detection in Computer Vision - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Face Landmark Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:00remaining
What is the main purpose of face landmark detection?

Imagine you want to put virtual glasses on a person's face in a photo. What does face landmark detection help you find?

AThe exact positions of key facial points like eyes, nose, and mouth
BThe person's age and gender
CThe background scenery behind the person
DThe color of the person's hair
Attempts:
2 left
💡 Hint

Think about what you need to place glasses correctly on a face.

Predict Output
intermediate
1:30remaining
Output of face landmark coordinates extraction code

What will be the output of this Python code snippet that uses a face landmark detector?

Computer Vision
import numpy as np
landmarks = np.array([[30, 40], [35, 45], [40, 50]])
print(landmarks.shape)
AError: 'shape' attribute not found
B(2, 3)
C[30 40 35 45 40 50]
D(3, 2)
Attempts:
2 left
💡 Hint

Check how many points and coordinates each point has.

Model Choice
advanced
2:00remaining
Choosing the best model architecture for real-time face landmark detection

You want to build a face landmark detector that works fast on a mobile phone. Which model architecture is best?

AA lightweight MobileNetV2 with depthwise separable convolutions
BA large ResNet with 50 layers
CA deep Transformer model with self-attention layers
DA simple linear regression model
Attempts:
2 left
💡 Hint

Think about speed and size for mobile devices.

Metrics
advanced
1:30remaining
Evaluating face landmark detection accuracy

Which metric best measures how close predicted face landmarks are to the true landmarks?

AAccuracy of classifying face vs non-face
BMean Squared Error (MSE) between predicted and true landmark coordinates
CCross-entropy loss on landmark heatmaps
DF1 score on detected face bounding boxes
Attempts:
2 left
💡 Hint

Think about measuring distance between points.

🔧 Debug
expert
2:30remaining
Debugging incorrect face landmark predictions

You trained a face landmark model but it predicts landmarks shifted far from the face in test images. What is the most likely cause?

AThe optimizer learning rate was too low
BThe model used too many layers causing overfitting
CThe training data landmarks were normalized but test data landmarks were not
DThe test images were grayscale but training images were color
Attempts:
2 left
💡 Hint

Think about coordinate scales and consistency between training and testing.