Computer Vision Interview 60 Q&A Chapter 10

Object Tracking — Interview Q&A

Video tracking basics, Kalman filtering, SORT/DeepSORT, and modern multi-object tracking ideas.

60 questions Chapter 10

Object Tracking Basics: 20 Essential Q&A

1 What is object tracking? ⚡ easy
Answer: Estimating object state over time in video—position, size, sometimes 3D pose—while preserving identity across frames.
2 SOT vs MOT? 📊 medium
Answer: Single-object tracking: one target given init box. Multi-object tracking: many objects with IDs—requires association across detections.
3 Tracking-by-detection? 📊 medium
Answer: Run detector each frame, link boxes into trajectories via association—modular and strong with good detectors.
4 What is data association? 🔥 hard
Answer: Decide which detection belongs to which track—classic bipartite matching with cost matrix (IoU, appearance, motion).
5 IoU matching? ⚡ easy
Answer: Greedy or Hungarian match predicted boxes to tracks by highest IoU above threshold—simple baseline for MOT.
6 Hungarian algorithm? 📊 medium
Answer: Solves assignment problem in O(n³)—global optimum for linear cost—used in SORT / DeepSORT association.
7 What are ID switches? 📊 medium
Answer: Tracker swaps identities between objects—common near crossings; penalized in MOTA metric.
8 Handle occlusion? 📊 medium
Answer: Predict motion during missing detections (Kalman), re-identify with appearance when visible again, or joint optimization over windows.
9 What is drift in SOT? ⚡ easy
Answer: Small errors accumulate updating from own predictions—mitigated by periodic re-detection or robust loss.
10 Why Kalman filters? 📊 medium
Answer: Predict box between frames with constant-velocity model; update when measurements arrive—cheap smooth motion prior.
11 Role of Re-ID features? 📊 medium
Answer: Cosine distance on embedding reduces ID switches when IoU ambiguous (similar DeepSORT).
12 What is MOTA? 🔥 hard
Answer: Multiple Object Tracking Accuracy—combines false positives, misses, and ID switches vs ground truth trajectories.
13 Online tracking? ⚡ easy
Answer: Uses only past and current frames—needed for robotics/live video; batch methods use future frames (smoother but not causal).
14 Classical KLT? 📊 medium
Answer: Track corner features with local flow—fast but fragile to appearance change; less common alone for generic objects now.
15 Siamese trackers? 📊 medium
Answer: Template branch + search region CNN—fast SOT without online fine-tuning in early versions (SiamFC family).
16 Transformer MOT? 🔥 hard
Answer: Track queries attend across space-time (e.g. TrackFormer)—joint detection+association in one model trend.
17 Real-time MOT? 📊 medium
Answer: Light detector + simple association (SORT) or specialized accelerators—appearance models add compute.
18 BEV tracking? 🔥 hard
Answer: Track in bird’s-eye view from multi-camera or LiDAR—used in autonomous driving stacks.
19 3D MOT? 📊 medium
Answer: Associate 3D boxes or point clusters—IoU in 3D or GIoU variants; Kalman in xyz + yaw.
20 Common benchmarks? ⚡ easy
Answer: MOTChallenge, KITTI tracking, nuScenes tracking—each defines detection input protocol and metrics.

Kalman Filter for Tracking: 20 Essential Q&A

21 What is the Kalman filter? 📊 medium
Answer: Optimal recursive estimator for linear systems with Gaussian noise—alternates prediction from dynamics and correction from noisy observations.
22 State-space form? 🔥 hard
Answer: x_{k+1} = F x_k + w_k (process noise), z_k = H x_k + v_k (measurement noise)—Kalman assumes linear F,H and Gaussian w,v.
23 Typical bbox state in SORT? 📊 medium
Answer: Often [cx, cy, s, r, vx, vy, vs] (center, scale area-ish, aspect, velocities)—measurements update subset.
24 Predict step? 📊 medium
Answer: x̂− = F x̂, P− = F P Fᵀ + Q—propagate mean and covariance forward in time without new measurement.
25 Update step? 📊 medium
Answer: Fuse measurement z using Kalman gain K: x̂ = x̂− + K(z − H x̂−), P = (I − K H) P−—reduce uncertainty along observed dimensions.
26 Kalman gain meaning? 🔥 hard
Answer: K balances trust in prediction vs measurement based on covariances—if R small (accurate sensor), K larger, trust measurement more.
27 Tune Q? 📊 medium
Answer: Process noise covariance—higher Q = more model uncertainty, tracker follows measurements faster but noisier.
28 Tune R? 📊 medium
Answer: Measurement noise—higher R = smoother track, lag on maneuvers; lower R = jittery if detector noisy.
29 Constant velocity model? ⚡ easy
Answer: Assumes derivative of position constant between frames—simple, works for smooth motion; fails on sharp turns.
30 Constant acceleration? 📊 medium
Answer: Adds acceleration state for more expressive motion—better for maneuvering targets, more parameters to tune.
31 When EKF? 🔥 hard
Answer: Nonlinear dynamics or measurement—linearize with Jacobians around current estimate; no longer globally optimal but widely used.
32 UKF / particle? 🔥 hard
Answer: Handle stronger nonlinearities—UKF uses sigma points; particle filters for non-Gaussian multimodal posteriors (rare in simple MOT).
33 Missing detection? ⚡ easy
Answer: Skip update; covariance grows with prediction-only steps until next match—standard in SORT when object temporarily not detected.
34 Multi-dimensional measurements? 📊 medium
Answer: H maps state to observed variables (e.g. only position observed, not velocity directly inferred from motion over time).
35 What is P? 📊 medium
Answer: State estimate covariance—uncertainty ellipsoid; should shrink after informative updates.
36 Initialize velocity? ⚡ easy
Answer: From finite differences of first two boxes or zero velocity with high initial P—tradeoff between fast lock vs overshoot.
37 SORT’s use? 📊 medium
Answer: Each track maintains Kalman state; Hungarian matches detections to predicted boxes—simple, fast MOT baseline.
38 OpenCV? ⚡ easy
Answer: cv2.KalmanFilter with transition/measurement matrices—set dt, Q, R for bbox tracking experiments.
import cv2
kf = cv2.KalmanFilter(4, 2)  # example dims
39 Numerical issues? 🔥 hard
Answer: Use Joseph form for P update, symmetric enforcement, or square-root filtering if covariance becomes indefinite.
40 When Kalman fails? 📊 medium
Answer: Highly nonlinear motion, multi-modal uncertainty (occlusions), or heavy-tailed detector noise—consider particle, IMM, or learning-based motion.

SORT & DeepSORT: 20 Essential Q&A

41 What is SORT? 📊 medium
Answer: Simple online MOT: Kalman filter motion model + Hungarian assignment with IoU cost between predicted and detected boxes—very fast.
42 Steps each frame? 📊 medium
Answer: Predict all tracks → match detections to tracks by IoU → update matched with Kalman measurement → create new tracks for unmatched dets → delete stale tracks.
43 Why Hungarian? ⚡ easy
Answer: Optimal one-to-one assignment minimizing total cost—better than greedy max-IoU for competing hypotheses.
44 Cost matrix? 📊 medium
Answer: Often 1 − IoU or negative IoU with threshold—reject matches below IoU min (no assignment).
45 max_age / min_hits? 📊 medium
Answer: Delete track if unmatched for max_age frames; confirm birth only after min_hits to reduce spurious tracks from false positives.
46 What does DeepSORT add? 🔥 hard
Answer: CNN appearance embedding + cosine distance combined with motion Mahalanobis gate—reduces ID switches when IoU ambiguous.
47 Cosine metric learning? 📊 medium
Answer: Train embedding so same-ID images are closer than different-ID—used with triplet or classification losses on person crops.
48 Cascade matching in DeepSORT? 🔥 hard
Answer: First match high-confidence detections to tracks using appearance+motion; then lower-confidence in second stage—reduces clutter confusion.
49 Mahalanobis gate? 📊 medium
Answer: Reject association if innovation (z − Hx) is unlikely under predicted covariance—filters physically impossible jumps.
50 Descriptor dimension? ⚡ easy
Answer: Typical 128-D L2-normalized vector per detection crop—cosine distance = 1 − dot product.
51 Gallery of features? 📊 medium
Answer: Store recent embeddings per track for matching—manage length to balance memory and adaptability to appearance change.
52 Occlusion? 📊 medium
Answer: IoU fails when overlapping—appearance helps reacquire correct ID after split; still hard in dense crowds.
53 Why fast? ⚡ easy
Answer: Minimal overhead beyond detector—no heavy joint optimization per frame unlike some MHT approaches.
54 What is ByteTrack? 📊 medium
Answer: Also associates low-score detections in a second pass—recovers occluded objects SORT might drop.
55 BoT-SORT? 🔥 hard
Answer: Adds camera motion compensation + improved Re-ID—strong MOTChallenge scores.
56 Dense crowds? 📊 medium
Answer: IoU-only methods degrade—appearance, higher-order models, or transformer MOT help.
57 Train appearance? 📊 medium
Answer: On person re-ID datasets (Market1501, etc.) separate from detector—domain gap to target scene matters.
58 SORT limits? ⚡ easy
Answer: Assumes good detector; IoU association weak under fast motion / low FPS; camera motion not modeled in vanilla SORT.
59 vs joint detectors? 🔥 hard
Answer: TrackFormer / MOTR predict tracks end-to-end—no hand-crafted association but need more data and compute.
60 Production? 📊 medium
Answer: Match detector FPS; batch Re-ID CNN; tune thresholds per scene; log ID switches for QA.
Full tutorial chapter

Pair these interview notes with the matching CV tutorial chapter.

align-items-center flex-wrap gap-2"> Previous Next