Challenge - 5 Problems
Optical Flow Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
What does optical flow represent in video analysis?
In simple terms, what does optical flow describe when analyzing a video sequence?
Attempts:
2 left
💡 Hint
Think about how objects move from one frame to the next in a video.
✗ Incorrect
Optical flow captures how pixels move between frames, showing motion patterns.
❓ Predict Output
intermediate2:00remaining
Output of Optical Flow Calculation Code
What is the shape of the output array from the following optical flow calculation using OpenCV's calcOpticalFlowFarneback function?
Computer Vision
import cv2 import numpy as np prev_frame = np.zeros((100, 100), dtype=np.uint8) next_frame = np.zeros((100, 100), dtype=np.uint8) flow = cv2.calcOpticalFlowFarneback(prev_frame, next_frame, None, 0.5, 3, 15, 3, 5, 1.2, 0) output_shape = flow.shape
Attempts:
2 left
💡 Hint
Optical flow returns a vector for each pixel indicating motion in x and y directions.
✗ Incorrect
The output is a 3D array with height and width matching the input frames, and 2 channels for horizontal and vertical flow components.
❓ Model Choice
advanced2:30remaining
Choosing a Model for Dense Optical Flow Estimation
Which model architecture is best suited for estimating dense optical flow between two images?
Attempts:
2 left
💡 Hint
Dense optical flow requires per-pixel motion vectors.
✗ Incorrect
CNNs can learn spatial features and output a flow vector per pixel, making them ideal for dense optical flow.
❓ Hyperparameter
advanced2:00remaining
Effect of Pyramid Scale Parameter in Optical Flow Calculation
In the Farneback optical flow algorithm, what is the effect of increasing the pyramid scale parameter (pyr_scale)?
Attempts:
2 left
💡 Hint
Think about how image pyramids help detect motion at different scales.
✗ Incorrect
A larger pyr_scale means the pyramid images are closer in size, increasing resolution and detail but requiring more computation.
❓ Metrics
expert3:00remaining
Evaluating Optical Flow Accuracy with Endpoint Error
Given ground truth flow vectors and predicted flow vectors, how is the average endpoint error (EPE) calculated?
Attempts:
2 left
💡 Hint
Endpoint error measures how far off the predicted motion vectors are from the true ones.
✗ Incorrect
EPE is the average length of the vector difference between predicted and ground truth flow vectors, showing average prediction error.