UAT 456 Artificial Intelligence, Machine Learning and Computer Vision for UAS
Worksheet 12 Registering and comparing two flights
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
- Photograph the surface twice at least an hour apart with a slightly different angle and light
- Set Canny thresholds from a crack-free area and report continuity and stray edges
- Find the angle and spacing of regular lines with Hough and compare with the tape measure
- Register the two images with ORB and SIFT; report pairs, inliers, time and the error at five check points
- Try a repeating-pattern scene and record how the matching fails
- Place one new object, run the change detector and report the regions found and the false ones
Record of results
| Setting | Low / high threshold | Line covered (%) | Gaps | Stray edge pixels | After dropping short pieces |
|---|---|---|---|---|---|
| Item | From the image (px) | In real units | Tape measure | Difference (%) |
|---|---|---|---|---|
| Scene or method | Pairs passing the ratio test | Inliers | Time (ms) | Check-point error (px) | Regions found / false |
|---|---|---|---|---|---|
Questions
What does hysteresis trade against what, and why must short edge pieces be removed afterwards? Answer from Table 1.
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?
How did matching fail on the repeating pattern, what was the inlier rate, and what information from outside the image would fix it?
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