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

Worksheet 12 Registering and comparing two flights

Lab 3 hAssesses CLO7, CLO8

Objective

Set Canny thresholds, find lines with Hough, register images with ORB and SIFT, test the repeating-pattern case and build a change detector

Equipment and materials

  • Camera or training drone and a textured surface (concrete, wall)
  • Tape measure and a small object to place as a change
  • Computer with Python, OpenCV and the module 12 example code

Safety

  • If flying to record, fly within CAAT conditions in visual line of sight, keep people clear, check batteries and propellers before flight, and do not record faces unnecessarily
  • If using the lecturer's sample video or images, it is desk work with no flying

Steps

  1. Photograph the surface twice at least an hour apart with a slightly different angle and light
  2. Set Canny thresholds from a crack-free area and report continuity and stray edges
  3. Find the angle and spacing of regular lines with Hough and compare with the tape measure
  4. Register the two images with ORB and SIFT; report pairs, inliers, time and the error at five check points
  5. Try a repeating-pattern scene and record how the matching fails
  6. Place one new object, run the change detector and report the regions found and the false ones

Record of results

Table 1 Canny thresholds and continuity
SettingLow / high thresholdLine covered (%)GapsStray edge pixelsAfter dropping short pieces
Table 2 Hough angle and spacing against the tape
ItemFrom the image (px)In real unitsTape measureDifference (%)
Table 3 Registration and change detection
Scene or methodPairs passing the ratio testInliersTime (ms)Check-point error (px)Regions found / false

Questions

  1. What does hysteresis trade against what, and why must short edge pieces be removed afterwards? Answer from Table 1.

  2. If the joint spacing measures 118 px at a GSD of 0.040 m, how far is it from the design 5.00 m, and what are the possible causes?

  3. How did matching fail on the repeating pattern, what was the inlier rate, and what information from outside the image would fix it?

  4. Why does a plain difference of two flights give many false regions, and why does each layer of the method in Example 5 reduce them?

Check before you hand in

What to hand in

  • Edge images and continuity table
  • Table of angle and spacing against the tape
  • ORB versus SIFT inlier and error table
  • Change-detection result with false regions

CLO7 Select and compare computer vision techniques (image and video processing, edge and feature detection, image matching, detection, classification, segmentation and tracking) to fit the problem, the data and the limits of an application. 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