UAT 307 Computer Vision and Perception Technology
Worksheet 2 Geometric and temporal calibration
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
- In class: estimate the homography with Example 1 from the oblique image with four targets of known spacing
- In class: measure other ground distances from the image and compare with the known distances
- In class: compare with cv2.findHomography; add one wrong point and observe RANSAC
- In class: estimate the offset with Example 2 from the gyro and video data
- 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
- Self-study: study the Kalibr documentation and write a camera–IMU calibration procedure for the training drone
Record of results
| Point pair | Image coordinates (px) | Ground coordinates from H (m) | Distance from H (m) | Known distance (m) | Error (m) |
|---|---|---|---|---|---|
| Case | Point pairs used | Pairs accepted (inliers) | Result (distance or image overlay) | Notes |
|---|---|---|---|---|
| Data set | Sample rate (Hz) | Estimated offset (ms) | Resolution (ms) | Yaw rate assumed (deg/s) | Heading error (deg) |
|---|---|---|---|---|---|
Questions
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?
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.
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?
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