UAT 307 Computer Vision and Perception Technology

Worksheet 2 Geometric and temporal calibration

Analysis activity 3 hAssesses CLO1, CLO2

Objective

Estimate a homography from an oblique image to measure ground distances and estimate the camera–IMU time offset

Equipment and materials

  • An oblique drone image with four ground targets of known spacing, prepared by the lecturer (or a synthetic image made from a known homography)
  • Two overlapping drone images prepared by the lecturer
  • Gyro and video data recorded by the lecturer while rotating the drone by hand (or synthetic data with a known offset)
  • Python and OpenCV
  • Kalibr documentation

Safety

  • Computer work only; students do not fly in this course
  • The lecturer's recordings must come from flights within CAAT conditions in visual line of sight with people kept clear, and propellers must be removed before rotating the drone by hand
  • Do not share images showing outsiders at identification level

Steps

  1. In class: estimate the homography with Example 1 from the oblique image with four targets of known spacing
  2. In class: measure other ground distances from the image and compare with the known distances
  3. In class: compare with cv2.findHomography; add one wrong point and observe RANSAC
  4. In class: estimate the offset with Example 2 from the gyro and video data
  5. Self-study: detect ORB keypoints in the two overlapping images, match them with the ratio test of Example 3 and estimate the homography with RANSAC
  6. Self-study: study the Kalibr documentation and write a camera–IMU calibration procedure for the training drone

Record of results

Table 1 Ground distances from the homography versus known distances (steps 1-2)
Point pairImage coordinates (px)Ground coordinates from H (m)Distance from H (m)Known distance (m)Error (m)
Table 2 Effect of a wrong point, RANSAC and feature matching (steps 3 and 5)
CasePoint pairs usedPairs accepted (inliers)Result (distance or image overlay)Notes
Table 3 Camera-IMU time offset (step 4)
Data setSample rate (Hz)Estimated offset (ms)Resolution (ms)Yaw rate assumed (deg/s)Heading error (deg)

Questions

  1. Points A and B are only 250 px apart in the image but more than 12 m apart on the ground, and one pixel covers more ground near B than near A. Why? If you mis-click by 2 px, which point causes the larger distance error?

  2. After adding one wrong point and fitting H to all points, how much did distance A-B and the pad corner move? What happened with RANSAC? Explain what RANSAC did with that point.

  3. How close was your estimated offset to the true value, compared with the sampling resolution? If the drone yaws at 90 deg/s, how many degrees of heading error does this offset cause, and how could the resolution be improved?

  4. How much did the match count in Table 2 fall after the ratio test and after RANSAC? Why does the ratio test matter for images of tiled roofs or solar panels?

Check before you hand in

What to hand in

  • Homography matrix and distance table
  • RANSAC experiment result
  • Time offset with plots
  • Camera–IMU calibration procedure
  • Match counts before and after the ratio test and RANSAC

CLO1 Explain image formation and camera geometry. CLO2 Process images and calibrate cameras. (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