# 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: article

Language: en

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

Topics: [Network](<https://devfeed.tech/topics/network.md>), [10 Gigabit Ethernet](<https://devfeed.tech/topics/10gbe-networking.md>), [Image](<https://devfeed.tech/topics/image.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [communications](<https://devfeed.tech/tags/communications.md>), [computer-vision](<https://devfeed.tech/tags/computer-vision.md>), [mapping](<https://devfeed.tech/tags/mapping.md>), [microwave](<https://devfeed.tech/tags/microwave.md>), [opencv](<https://devfeed.tech/tags/opencv.md>), [radio](<https://devfeed.tech/tags/radio.md>), [relay](<https://devfeed.tech/tags/relay.md>), [video](<https://devfeed.tech/tags/video.md>)

## AI overview

Microwave relay links can be mapped by estimating each dish's pointing direction from position-stamped video taken while circling its tower. The dish-shroud circle-diameter ratio varies sinusoidally with camera angle; its maximum indicates that the camera faces the beam. The text suggests selecting the peak frame or fitting a smooth sinusoid, with OpenCV Hough transforms and centroid calculations as possible aids. A line-of-sight formula, 7140 x √(4/3 x h), gives a maximum possible link distance based on antenna height; a nearer mapped tower in the beam's direction can then be treated as a likely connection. In the example, the beam points west-northwest at 290°, reaches no farther than 48 km, and appears to belong to a government trunked radio network. A full-circle drone flight is described as optimal, while a GPS-positioned ground camera is an alternative.

## 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.