Inspiration
Airport security scanners see through clothing with microwaves, but they are big, fixed gates. Rohde & Schwarz asked what comes next: a handheld scanner with a radar and a stereo camera in one device. A small handheld radar only sees one patch at a time, so a full image needs many patches, and every patch has to be put in the right place:
$$\text{patch} + \text{pose} = \text{image}$$
The pose has to be very precise. To combine radar measurements, the position has to be known to about a quarter of the radar wavelength. At a typical security band around \( f = 80 \) GHz:
$$\lambda = \frac{c}{f} \approx 3.75\ \text{mm} \quad\Rightarrow\quad \frac{\lambda}{4} \approx 0.94\ \text{mm}$$
So the camera does not just need "good tracking": it needs millimetre accuracy from a hand-held stereo camera and its IMU, with no external tracker in the room. That is what made us want this task.
What it does
For every video frame, our system estimates the full 6-DoF pose (position and orientation) of the left camera, using only the two videos, the IMU and the calibration file.
- Result on the 10 recordings with a reference: \( 1.80 \) mm mean position error and \( 0.17^\circ \) mean orientation error. Without the hardest recording (seq10, with fast swings up to \( 70^\circ/\text{s} \)), it is \( 1.31 \) mm and \( 0.150^\circ \).
- Submission: the same pipeline, run on the 10 scored recordings (seq11–seq20).
- A test bench that runs any approach on any recording, scores it exactly like the jury does, and compares approaches with each other, including on recordings without a reference.
How we built it
1. A test bench first. Before trying any method, we rebuilt the organizers' metric: match timestamps within 1 ms, fit one rigid transform to the positions (no scale), fit a separate rotation to the orientations, and average the per-frame errors. The ranking score is
$$S = \tfrac12 \min!\left(1, \frac{e^{}{\text{pos}}}{e{\text{pos}}}\right) + \tfrac12 \min!\left(1, \frac{e^{}{\text{ang}}}{e{\text{ang}}}\right)$$
where \( e^{*} \) is the best team's error. Only the evaluator ever reads the reference trajectories. Every approach gets a fixed id, results are cached by their settings, and every idea that did not help is archived with its numbers and the reason.
2. Three families of methods, each behind a small adapter:
- An earlier stereo pipeline by friends of the team: visual odometry with stereo depth, run forward and backward in time, a SIFT pose graph, photometric refinement and an IMU step.
- COLMAP: structure-from-motion over the whole recording, with the stereo rig fixed at the calibrated 5 cm baseline so the result is in real metres.
- Basalt: visual-inertial odometry. It is fast, but too inaccurate on its own (4.2 mm).
3. Our own tools on top: a trajectory smoother that follows the IMU, a shake analysis, and several ways to combine methods. The smoother solves one sparse least-squares problem per axis:
$$\min_{x} \sum_i w_i \,\lVert x_i - z_i \rVert^2 + \lambda \sum_i \lVert (D x)_i - a_i \rVert^2$$
Here \( z_i \) are the measured positions, \( D \) takes second differences (acceleration), and \( a_i \) is what the accelerometer measured, with gravity, sensor bias and the 3.5 cm IMU-to-camera lever arm handled.
4. The final pipeline (combo_guarded):
- Position: a frame-by-frame average of the friends' pipeline and IMU-smoothed COLMAP. Basalt acts as a referee with weight 0: a method \( m \) is dropped on frame \( t \) only if it is a gross outlier,
$$d_m(t) > \max!\big(2\ \text{mm},\; 12 \cdot \tilde d_m\big)$$
where \( d_m(t) \) is its distance from the median of the three methods and \( \tilde d_m \) its usual distance.
- Orientation: from the friends' pipeline just before its IMU step, which turned out to be slightly more accurate than after it.
The jury aligns position and orientation separately, so the two halves may come from different methods. Everything ran on a MacBook (M5, 24 GB, CPU only) in about 4–8 minutes per recording.
Challenges we ran into
- Basalt returned a camera that never moved. Its default minimum triangulation distance is 5 cm, larger than our 4.996 cm baseline, so it found no 3D points at all. Lowering that one setting took seq01 from 155 mm to 2.4 mm.
- COLMAP quietly changed our stereo baseline. Its triangulation step refines the camera rig by default, which turned 49.96 mm into anything from 48.9 to 50.3 mm and broke the metric scale. We now lock the rig in every step.
- A hidden time-offset limit. The friends' IMU step searched the camera/IMU time offset only within \( \pm 15 \) ms, but two recordings need \( -31 \) and \( -33 \) ms. We widened the search without editing their code; orientation on seq03 improved from \( 0.275^\circ \) to \( 0.262^\circ \), and seq13 in the scored set needs the same fix.
- Fast swings. On seq10 the camera swings at up to \( 70^\circ/\text{s} \). Every method breaks there, and this one recording is a third of our total error. The scored set has one recording just like it (seq19).
- A floor we cannot beat. Two completely different methods agree with each other within 0.4–1 mm, but both are 1–1.8 mm from the reference, and their errors point the same way (correlation about 0.9). The reference itself jitters by 0.4–1.6 mm from frame to frame in ways the IMU does not confirm. Most of the remaining error is in the reference, not in our methods.
- Many good ideas that did not work, each measured and archived: loop closure in COLMAP, removing shaky frames, straight-line smoothing, a gyro filter, measuring scale from the accelerometer, correcting tilt with gravity, frame-by-frame voting, and weighting methods by their agreement with the IMU.
Accomplishments that we're proud of
- 1.80 mm and \( 0.17^\circ \) mean error, millimetre precision as the organizers asked for, built entirely from the input files, so the same pipeline produces the submission.
- A health check for recordings without a reference. By comparing methods with each other, we found a 10 mm COLMAP glitch on seq11 and identified the hardest scored recording before submitting.
- Three real problems found and fixed, in Basalt's settings, COLMAP's settings and the friends' pipeline, each confirmed with a measurement.
- Honest negative results: 59 approaches, each with a fixed id, and every failure documented with numbers.
- A bench the whole team can use: teammates add a method by dropping in result files, giving a command, or writing a small Python function, and get scores in one command.
What we learned
- Averaging only helps when errors are independent. Two different methods gave \( 1.84 \) and \( 1.96 \) mm alone and \( 1.80 \) mm together. Adding a third method that shared COLMAP's errors made it worse.
- Measure before you optimize. Our intuition said the shaky frames were the problem. The data said the shake is real camera motion, our estimate is already smoother than the reference, and our error on shaky frames is no higher than on calm ones.
- Defaults are dangerous. Two of our worst problems came from one default setting each, in Basalt and in COLMAP.
- Follow the metric. Because position and orientation are aligned and scored separately, the best position and the best orientation can come from different methods.
What's next for hackfleischTUM
- Handle fast motion: a method built for it, such as DROID-SLAM on a GPU or ORB-SLAM3 with the IMU, for recordings like seq10 and seq19, where methods really disagree and a better one can win.
- Better orientation: our friends' earlier consensus method reached \( 0.1445^\circ \) on the normal recordings against our \( 0.1502^\circ \). Rebuilding it from methods we can run is our best lead.
- Real time: move from offline processing to a live pose stream, so the handheld scanner can place each radar patch as it is measured.
