# Mapping microwave relay links from video

DevFeed: [Mapping microwave relay links from video](<https://devfeed.tech/articles/mapping-microwave-relay-links-from-video-21639.md>)

Original publisher: [Read original article](<https://www.windytan.com/2014/07/mapping-microwave-relay-links-from-video.html>)

Author: Oona Räisänen (noreply@blogger.com)

Published: 2014-07-14T13:05:00Z

Content type: tutorial

Language: en

Sources: [Oona Räisänen](<https://devfeed.tech/sources/oona-raisanen.md>)

Topics: [Network](<https://devfeed.tech/topics/network.md>), [Networks](<https://devfeed.tech/topics/networks.md>), [OpenCV](<https://devfeed.tech/topics/opencv.md>)

Tags: [camera](<https://devfeed.tech/tags/camera.md>), [communications](<https://devfeed.tech/tags/communications.md>), [computer-vision](<https://devfeed.tech/tags/computer-vision.md>), [drone](<https://devfeed.tech/tags/drone.md>), [government](<https://devfeed.tech/tags/government.md>), [gps](<https://devfeed.tech/tags/gps.md>), [map](<https://devfeed.tech/tags/map.md>), [mapping](<https://devfeed.tech/tags/mapping.md>), [network](<https://devfeed.tech/tags/network.md>), [networks](<https://devfeed.tech/tags/networks.md>), [radio](<https://devfeed.tech/tags/radio.md>)

## AI overview

The article explains how to map microwave relay links between towers using position-stamped video or still-camera footage. It describes estimating antenna direction from dish geometry, using OpenCV for image processing, and estimating a linked tower's maximum possible distance from antenna height and line-of-sight constraints.

## Source excerpt

Radio networks are often at least partially based on microwave relay links. They're those little mushroom-like appendices growing out of cell towers and building-mounted base stations. Technically, they're carefully directed dish antennas linking such towers together over a line-of-sight connection. I'm collecting a little map of nearby link stations, trying to find out how they're interconnected and which network they belong to. Circling around We can find a rough direction for any link antenna by approximating a tangent for the dish shroud surface from position-stamped video footage taken while circling the tower. Optimally we would have a drone make a full circle around the tower at a constant distance and elevation to map all antennas at once; but if our DJI Phantom has run out of battery, a GPS positioned still camera at ground level will also do. The rest can be done manually, or using Hough transform and centroid calculation from OpenCV. In these pictures, the ratio of the diameters of the concentric circles is a sinusoid function of the angle between the antenna direction and the camera direction. At its maximum, we're looking straight at the beam. (The ratio won't max out at unity in this case, because we're looking at the antenna slightly from below.) We can select the frame with the maximum ratio from high-speed footage, or we can interpolate a smooth sinusoid to get an even better value. This particular antenna is pointing west-northwest with an azimuth of 290°. What about distance? Because of the line-of-sight requirement, we also know the maximum possible distance to the linked tower, using the formula 7140 x √(4 / 3 x h) where h is the height of the antenna from ground. If the beam happens to hit a previously mapped tower closer than this distance, we can assume they're connected! This antenna is communicating to a tower not further away than 48 km. Judging from the building it's standing on, it belongs to a government trunked radio network.