UAT 456 Artificial Intelligence, Machine Learning and Computer Vision for UAS

Worksheet 14 Tracking and measuring with uncertainty

Lab 3 hAssesses CLO8

Objective

Track an object and measure its speed, build a tracker that copes with occlusion, compute a length uncertainty budget, measure thin lines and estimate a step

Equipment and materials

  • A slow object of known speed (foam block on a conveyor or radio-controlled boat) and a video camera
  • A reference bar of known length, a test sheet of lines 0.3 to 3 mm wide and two plates 3 mm apart in level
  • Computer with Python, OpenCV and the module 14 example code

Safety

  • Mainly tripod or ground work; any flying follows CAAT conditions in visual line of sight
  • If shooting near water, watch for slippery ground and do not enter the water

Steps

  1. Track foam or texture with LK and compare the speed with the true one, removing the background motion
  2. Try frame gaps of 1, 4 and 16 with and without a pyramid, counting the points that pass the backward check
  3. Write a tracker with TRACK and COAST states and hide the object for 5 to 20 frames
  4. Find the GSD two ways and compute the uncertainty budget of one length with U at k = 2
  5. Measure the line widths on the test sheet with FWHM and pixel counting and find the narrowest width that can be trusted
  6. Photograph the two plates from two stations, estimate the step and compare with a contact instrument

Record of results

Table 1 Measured against true speed
Frame gap / pyramidPoints passing the backward checkBackground motion (px/frame)Object motion (px/frame)Measured speed (m/s)True speed (m/s)
Table 2 Tracker states and uncertainty budget
ItemValueStandard uncertaintyShare of variance (%)
Table 3 Line widths and the step
True width or itemFWHM (mm)Pixel count (mm)Difference from trueTrustworthy?

Questions

  1. Why must background motion be removed before computing speed, and what is the surface speed if the water moves 1.8 px per frame after removal at a GSD of 0.025 m and 25 fps?

  2. At which frames did your tracker lose and regain the object, and why must the velocity not be updated from partly hidden frames?

  3. Which source dominates your uncertainty budget, and why must a bias of known direction be corrected first rather than folded into the noise?

  4. What is the narrowest trustworthy width on your test sheet, and does it agree with the rule of at least 3 pixels?

  5. Why is the step from the difference of two plates in the same images more accurate than absolute depth, and how does a longer baseline help?

Check before you hand in

What to hand in

  • Table of measured against true speed
  • Log of the tracker states during occlusion
  • Uncertainty budget of a length with U
  • Table of measured against true widths and the step result

CLO8 Develop drone image and video applications with OpenCV and Python for inspection, navigation, surveying and intelligent systems, including image-based measurement with its uncertainty. (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