Challenge - 5 Problems
Bounding Box Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding bounding box formats
Which of the following bounding box representations uses the coordinates of the top-left corner and the width and height of the box?
Attempts:
2 left
💡 Hint
Think about which format explicitly mentions width and height.
✗ Incorrect
The XYWH format specifies the bounding box by the top-left corner coordinates (X, Y) and the width (W) and height (H) of the box.
❓ Predict Output
intermediate2:00remaining
Output of bounding box conversion code
What is the output of this Python code converting a bounding box from XYWH to XYXY format?
box_xywh = [50, 30, 100, 200]
box_xyxy = [box_xywh[0], box_xywh[1], box_xywh[0] + box_xywh[2], box_xywh[1] + box_xywh[3]]
print(box_xyxy)
Computer Vision
box_xywh = [50, 30, 100, 200] box_xyxy = [box_xywh[0], box_xywh[1], box_xywh[0] + box_xywh[2], box_xywh[1] + box_xywh[3]] print(box_xyxy)
Attempts:
2 left
💡 Hint
Add width to x and height to y to get bottom-right corner.
✗ Incorrect
The bottom-right corner is calculated by adding width to x and height to y, so (50+100, 30+200) = (150, 230).
❓ Model Choice
advanced2:00remaining
Choosing bounding box format for object detection model
You are designing an object detection model that predicts bounding boxes. Which bounding box representation is most suitable for regression output in a neural network?
Attempts:
2 left
💡 Hint
Think about what is easier for a network to predict smoothly.
✗ Incorrect
Center coordinates with width and height are continuous and easier for regression, making them suitable for neural network outputs.
❓ Metrics
advanced2:00remaining
Evaluating bounding box predictions with IoU
What does an Intersection over Union (IoU) score of 0.75 between a predicted bounding box and the ground truth indicate?
Attempts:
2 left
💡 Hint
IoU measures overlap area divided by union area.
✗ Incorrect
IoU is the ratio of the overlapping area to the combined area of both boxes. A score of 0.75 means 75% overlap.
🔧 Debug
expert2:00remaining
Debugging bounding box normalization error
Given an image of size 200x100 pixels and a bounding box [50, 20, 150, 80] in XYXY format, a developer tries to normalize the box coordinates by dividing by image width and height as follows:
normalized_box = [50/100, 20/200, 150/100, 80/200]
What is the main issue with this normalization approach?
Attempts:
2 left
💡 Hint
Check which coordinates correspond to width and height axes.
✗ Incorrect
The code incorrectly divides x-coordinates by image height (100) and y-coordinates by image width (200). X-coordinates should be divided by image width (200), and y-coordinates by image height (100).