UAT 307 Computer Vision and Perception Technology
Worksheet 3 Tracking cars in drone video
Objective
Build a tracking-by-detection tracker, evaluate it with MOTA and use it to count cars
Equipment and materials
- Drone video of a car park
- Detector from UAT 306
- Python and the module 3 example code
- Labelling tool
Safety
- Computer work only; no flying
- Do not share video showing licence plates or outsiders
Steps
- In class: run the detector on every frame, save the boxes and check one box by hand as in Example 1
- Self-study: compare full-frame with tiled detection
- In class: write the tracker from Example 2 with IoU association
- In class: label ground-truth tracks for the first 20 frames
- Self-study: label all 100 frames and compute MOTA with Example 3
- Self-study: vary the IoU threshold and the missing-frame limit before closing a track
- Self-study: count cars crossing a line and compare with a manual count
Record of results
| Frame or box | Class score | Box corners (px) | Box size (px) | Full frame or tiled | Correct? |
|---|---|---|---|---|---|
| Setting (IoU threshold, missing-frame limit) | FN | FP | IDSW | Real objects in total | MOTA |
|---|---|---|---|---|---|
| Counting method | Cars counted | Difference from count by eye | Cause of miscount (if any) |
|---|---|---|---|
Questions
While a car was hidden in your tracker, how did the position uncertainty change compared with Example 2, and why must there be a maximum number of missing frames before a track is closed?
Which setting in Table 2 gave the highest MOTA, and which of FN, FP or IDSW changed most as you varied the settings? Explain using how the cars move in the video.
If a car is 30 px wide in a 4K frame (3840 px wide) and the frame is shrunk to 640 px, how wide is the car? How does this explain the full-frame versus tiled difference in Table 1?
Why can counting cars by track ID go wrong if identity switches are not checked, and how does compensating for the drone's own motion relate to this count?
Check before you hand in
What to hand in
- Tracker code
- MOTA and identity switches
- Parameter sweep table
- Car count versus manual count