Work / Finding power-line parts in huge photos
Finding power-line parts in huge photos
My software spots the small parts on power lines in helicopter photos and places each one in 3D. On a big project that takes about a day, where doing it by hand would take more than two years.
What you see. Six helicopter photos of the same spot on a power line (left) and that spot in 3D (right). Watch the software find each part, place it in 3D and double-check the count, then step through it yourself below.
Try it yourself
What the real one does
My feature matching algorithm places a big inspection project's detections in 3D in about a day, where linking them by hand would take more than two years. The detector finds power grid elements on 150-megapixel imagery. An original procedure I designed and implemented cut wrong and missed detections by roughly 70 %.
- A damper, a small weight that stops the wire vibrating, takes up a tiny part of a 150 MP frame. Shrink the photo and the detector loses it, and a single photo can't tell how far away it is.
- That is why the detection runs on full-resolution tiles with SAHI, which I patched to process tiles in parallel for faster runs. Each component appears in many overlapping photos, and matching works out which detections belong to one object. It then places that object in 3D, to a few centimetres at about 50 m from the camera.
- Cluster QC, the count check. The matcher sometimes counts a damper twice or misses one, and I started Cluster QC on my own to catch that. Cluster QC asks every photo of a spot how many dampers it sees. Each photo is a vote, and the count most photos agree on wins. On a project of about 30,000 elements it cut missed detections, and the manual review they cause, by roughly 70 %.
- I wrote the training, the dataset tools for annotation in CVAT, batch inference and the matching. For the 3D placement I chose epipolar geometry over structure-from-motion, because it is fast and the photos never need opening again once detection has run. The count check was my idea and my initiative, and I wrote its 880-line design document and the ground-truth benchmark that measures every change.
- Result. A couple of weeks of flight data take a couple of days of YOLO detection and about a day of 3D placement. People then inspect and check the results in the geotagger for one to two weeks, depending on the project. For a project of about 30,000 elements, I assessed whether the job could be done at all and worked out how.
How the demo works
The photos come from a helicopter flying beside the line, each with a position and an orientation. Here each one is cut down to one spot: two or three dampers near a tower's clamp. The first step shows a whole photo and the tiles the detector runs over.
A box is only a direction. Each one becomes a line from its camera, and lines from different photos that meet near one point mark one probable damper. The 3D view shows the lines. Hover a photo to pick out its own.
The matcher groups the lines into dampers, and that is where most of the mistakes happen. Two dampers less than a metre apart can fall into one group. A small error in some photos' orientation can split one damper into two.
The count check counts instead of matching. Each photo votes how many dampers it sees on the spot. Seen at a slant, two neighbours can share one box, so a few photos vote low, but most photos still agree. Where their count differs from the matcher's, the spot is fixed. Untick the count check to see what the matcher alone would have sent on.
Next spot cycles through three spots: one the matcher gets right, one where it joins two dampers, and one where it counts a damper twice.