0
0
Computer Visionml~20 mins

Bounding box representation in Computer Vision - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Bounding Box Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2: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?
AXYWH format
BXYXY format
CCenter coordinates with width and height
DNormalized coordinates between 0 and 1
Attempts:
2 left
💡 Hint
Think about which format explicitly mentions width and height.
Predict Output
intermediate
2: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)
A[0, 0, 150, 230]
B[50, 30, 100, 200]
C[50, 30, 150, 230]
D[50, 30, 50, 30]
Attempts:
2 left
💡 Hint
Add width to x and height to y to get bottom-right corner.
Model Choice
advanced
2: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?
ATop-left and bottom-right corners (x1, y1, x2, y2)
BCenter coordinates with width and height (cx, cy, w, h)
CPolygon points around the object
DBinary mask of the object
Attempts:
2 left
💡 Hint
Think about what is easier for a network to predict smoothly.
Metrics
advanced
2: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?
AThe predicted box overlaps 75% with the ground truth box
BThe predicted box is 75% larger than the ground truth box
CThe predicted box is 75% smaller than the ground truth box
DThe predicted box and ground truth box do not overlap
Attempts:
2 left
💡 Hint
IoU measures overlap area divided by union area.
🔧 Debug
expert
2: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?
AThe box coordinates are not in XYXY format
BThe box coordinates exceed image dimensions
CThe width and height are swapped in division
DThe normalization should use width for x-coordinates and height for y-coordinates
Attempts:
2 left
💡 Hint
Check which coordinates correspond to width and height axes.