UAT 307 Computer Vision and Perception Technology

Worksheet 3 Tracking cars in drone video

Analysis activity 3 hAssesses CLO3

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

  1. In class: run the detector on every frame, save the boxes and check one box by hand as in Example 1
  2. Self-study: compare full-frame with tiled detection
  3. In class: write the tracker from Example 2 with IoU association
  4. In class: label ground-truth tracks for the first 20 frames
  5. Self-study: label all 100 frames and compute MOTA with Example 3
  6. Self-study: vary the IoU threshold and the missing-frame limit before closing a track
  7. Self-study: count cars crossing a line and compare with a manual count

Record of results

Table 1 Checking detector boxes, and full frame versus tiles (steps 1-2)
Frame or boxClass scoreBox corners (px)Box size (px)Full frame or tiledCorrect?
Table 2 MOTA for different IoU thresholds and missing-frame limits (steps 5-6)
Setting (IoU threshold, missing-frame limit)FNFPIDSWReal objects in totalMOTA
Table 3 Cars crossing the line versus counting by eye (step 7)
Counting methodCars countedDifference from count by eyeCause of miscount (if any)

Questions

  1. 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?

  2. 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.

  3. 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?

  4. 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

CLO3 Apply perception for navigation and detection. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack