# In sports broadcasts, how do they display those lines on the field?

**URL:** <https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856>\
**Category:** Factual Questions\
**Created:** [August 10, 2013, 7:34am UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856 "2013-08-10T07:34:58Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pitchmeister](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pitchmeister/32/3459_2.png) [@Pitchmeister](https://boards.straightdope.com/u/Pitchmeister)\
**Post date:** [August 10, 2013, 7:34am UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/1 "2013-08-10T07:34:58Z")

</div>

Something I’ve wondered for a long time: in various sports, there are lines superimposed on the picture in various situations - to display the line of scrimmage in football, for instance, or in throwing contests to show the distance to beat. You get the idea. I see how people can walk “over” those lines, I suppose that’s simple green screen technology, but how do those lines get there in the first place, with a moving camera? Are there invisible markers on the field that the computer system picks up on?

---

<div class="post-metadata">

**Author:** ![Among\_Liberals](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Among\_Liberals](https://boards.straightdope.com/u/Among_Liberals)\
**Post date:** [August 10, 2013, 7:37am UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/2 "2013-08-10T07:37:53Z")

</div>

Not an expert but any chance, but I can see it being possible they have software that makes a graph of the field and hooks the cameras’ paths on to that. You can make each player a dot and go from there.

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [August 10, 2013, 8:27am UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/3 "2013-08-10T08:27:26Z")

</div>

Real time video software is getting really quite good at being able to detect what’s part of the scenery and what is not - even without a green screen.

For a moving camera, it needs to know where it’s pointing, which can be done by a variety of different methods:  
Markers in the field of view - like those suits with little dots on that people used to wear for motion capture, you can place markers (sometimes they look like 2d barcodes) around the field of view - the software can detect these in the streamed footage and work out the angle and orientation of the thing it’s looking at.

Or the camera/mount can be equipped with shaft encoders on the tilt axes, or gyroscopic sensors.

So when the system knows which way it’s looking, it can be configured to know what’s there when the field is empty - from that point on, separating the foreground and background is more or less a matter of subtraction - and because you know what the orientation of the camera is, you can substitute a computer rendered background to fit.

That’s a vast oversimplification, but it’s something like that. The technology/approach has even partly trickled down into computer webcam drivers now - on my laptop here, I can make it take a picture of the empty room, then separate out anything that’s different (i.e. me) and display it with a different background. Only works for stationary camera position obviously - as my webcam has no position sensors.

---

<div class="post-metadata">

**Author:** ![engineer\_comp\_geek](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/engineer_comp_geek/32/504_2.png) [@engineer\_comp\_geek](https://boards.straightdope.com/u/engineer_comp_geek)\
**Post date:** [August 10, 2013, 8:45am UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/4 "2013-08-10T08:45:03Z")

</div>

Lots of info here:

How Stuff Works article “How the First-Down Line Works”

> **[How the First-Down Line Works](https://entertainment.howstuffworks.com/first-down-line.htm)**
>
> The virtual first-down line that you see in many televised football games is something of a computer-generated miracle that home viewers have come to love. Find out how this line gets "painted" on the field without painting the players.

---

<div class="post-metadata">

**Author:** ![Pitchmeister](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pitchmeister/32/3459_2.png) [@Pitchmeister](https://boards.straightdope.com/u/Pitchmeister)\
**Post date:** [August 10, 2013, 8:51am UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/5 "2013-08-10T08:51:41Z")

</div>

Cool! Thanks, everyone!

---

<div class="post-metadata">

**Author:** ![Among\_Liberals](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Among\_Liberals](https://boards.straightdope.com/u/Among_Liberals)\
**Post date:** [August 10, 2013, 9:45am UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/6 "2013-08-10T09:45:10Z")

</div>

Wow, a lot more sophisticated than I could have imagined. That’s very neat.

---

<div class="post-metadata">

**Author:** ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)\
**Post date:** [August 10, 2013, 12:44pm UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/7 "2013-08-10T12:44:03Z")

</div>

My son, the programmer, was telling me about this a while ago. I didn’t understand much, but it is extremely sophisticated. Imagine, I can even recall (from maybe 40 years ago) when the introduced instant replay, how proud they were of the latest technology.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [August 10, 2013, 1:26pm UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/8 "2013-08-10T13:26:22Z")

</div>

When they first started doing it, the line was overlaid over anything green, including in some cases portions of the players’ uniforms.

> [@](#):
>
> Markers in the field of view - like those suits with little dots on that people used to wear for motion capture, you can place markers (sometimes they look like 2d barcodes) around the field of view - the software can detect these in the streamed footage and work out the angle and orientation of the thing it’s looking at.

For the wide-angle shots, they can probably use the same hash marks and yard lines we humans use, for this purpose. I don’t know if they actually do (there might be even better methods), but it’d certainly be an option.

---

<div class="post-metadata">

**Author:** ![bump](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bump](https://boards.straightdope.com/u/bump)\
**Post date:** [August 10, 2013, 1:43pm UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/9 "2013-08-10T13:43:16Z")

</div>

> [@Among\_Liberals](#):
>
> Wow, a lot more sophisticated than I could have imagined. That’s very neat.

I remember reading an article about the technology back when it first came out and was floored that they actually took the curve of the field into account. I’d assumed the whole thing was a lot simpler than that.

---

<div class="post-metadata">

**Author:** ![ZenBeam](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@ZenBeam](https://boards.straightdope.com/u/ZenBeam)\
**Post date:** [August 10, 2013, 4:30pm UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/10 "2013-08-10T16:30:06Z")

</div>

> [@Chronos](#):
>
> When they first started doing it, the line was overlaid over anything green, including in some cases portions of the players’ uniforms.

Last I knew, this still happened some times, for parts of uniforms within the range of grass color on that particular field. Much less often than at first, though. Probably gets rarer every year.

---

<div class="post-metadata">

**Author:** ![Little\_Nemo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/little_nemo/32/3120_2.png) [@Little\_Nemo](https://boards.straightdope.com/u/Little_Nemo)\
**Post date:** [August 10, 2013, 5:07pm UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/11 "2013-08-10T17:07:45Z")

</div>

“Yes, over here, I noticed in last week’s game there was a line projected on the football field! Please explain how it was done!”  
“Uh, yeah, well, whenever you notice something like that… a computer did it.”  
“Yes, alright, yes, but there was also-”  
“Computer.”

---

<div class="post-metadata">

**Author:** ![ducati](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@ducati](https://boards.straightdope.com/u/ducati)\
**Post date:** [August 10, 2013, 9:30pm UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/12 "2013-08-10T21:30:57Z")

</div>

C’mon guys. Maybe you need a refresher. It’s all ball bearings these days. Or software.  
In my studio at work, I use a Tricaster [similar to this one](http://www.newtek.com/products/tricaster-855.html). It has software that lets me put any number of overlays and underlays. Mangetout is overthinking things a good bit. It’s all software done in the switcher, not hardware.

You can apply the layer - in this case the line of scrimmage or down line - to 1 or more camera inputs, and toggle it off and on. When you go to camera 1 with Bob on the sideline, it’s not there, but switch to camera 2 showing the field from high above the 50, it will be there. Camera 3 is of the uprights, so no line, but cam 4 can show it, and so on.

It’s all in the switcher, independent of cameras, angles, or any hardware. It’s actually a pretty fun machine to play with.

We used to do a website with Fran picking fantasy football teams every week. I’d shoot Fran and Chris discussing players[like this here.](http://vimeo.com/71310297) That chalkboard behind them could just as easily be a video of an LA freeway chase, or a fishing show. You can insert screens with input from a dozen sources to make every show unique. [Here’s the program intro](http://vimeo.com/40960333) I made mostly with the Tricaster. He got tired of doing the show, so we’ve quit for a while. We may start it up next season, but I doubt it.

He still does a lot of appearances on CNN and Fox these days, and [the picture you see is](http://www.youtube.com/watch?v=MN1LtCOuBls) from our studio in our (Fran’s) office. I’ll put a background up with a green screen, and feed it to Fox. They split it, and put it up beside whoever is on.

For those of you who like to learn about how things work, [watch this intro](http://tv.newtek.com/player.php?recordID=94)to the Tricaster. There are other brands of switchers of course, but they generally all have the same capabilities.

Whether it is an 18-wheeler in the parking lot of a sporting event, or a megachurch broadcasting on Sunday morning, a switcher is the machine - and software - that makes pulling all the camera and graphic inputs possible.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [August 10, 2013, 10:32pm UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/13 "2013-08-10T22:32:49Z")

</div>

Well, sure, the software puts the overlay on the broadcast, but the real question was how does it know where to put it?

---

<div class="post-metadata">

**Author:** ![Manduck](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/manduck/32/256_2.png) [@Manduck](https://boards.straightdope.com/u/Manduck)\
**Post date:** [August 10, 2013, 10:34pm UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/14 "2013-08-10T22:34:07Z")

</div>

> [@ducati](#):
>
> C’mon guys. Maybe you need a refresher. It’s all ball bearings these days. Or software.

What you’re describing wouldn’t work if the camera is moving. The line has to be moved in real time to compensate for the movement of the camera so that it always appears to be in the same position on the field. So the system needs to have information on how the camera is positioned and oriented at all times. The link in engineer\_comp\_geek’s post explains it pretty well.

---

<div class="post-metadata">

**Author:** ![R.P.McMurphy](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@R.P.McMurphy](https://boards.straightdope.com/u/R.P.McMurphy)\
**Post date:** [August 10, 2013, 11:42pm UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/15 "2013-08-10T23:42:43Z")

</div>

It must be quite sophisticated. IIRC, when it was first used the developers were able to charge $20k per game when it was used. I don’t know if there is now competition or if the pricing has changed but it had to have been quite a lucrative undertaking for those that developed it.

---

<div class="post-metadata">

**Author:** ![txtumbleweed](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@txtumbleweed](https://boards.straightdope.com/u/txtumbleweed)\
**Post date:** [August 12, 2013, 2:34am UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/16 "2013-08-12T02:34:59Z")

</div>

Sports Illustrated just did a story on the [birth of the yellow line](http://sportsillustrated.cnn.com/nfl/news/20130718/nfl-birth-of-the-yellow-line/) last month.

> [@](#):
>
> **Sports Illustrated**  
> While the line looks simple on TV, the technology behind it is very complex. Sensors were placed on the three main game cameras (at midfield and the two 20 yard lines), capturing the pan, tilt and zoom movements of those cameras 30 times a second. A three-dimensional, virtual model of each field had to be constructed, with the exact measurements of the crown of the field (the center of the field is always higher, for drainage, than the sides and ends, but the precise levels vary in each venue). An exhaustive color palette had to be produced on the fly as the game progressed, so that the green pixels of grass the yellow line replaced would be exactly the “right greens” even as shadows crossed the field and changed the grass hues – an essential feature to assure replacing only the green blades of grass and not the green threads of a Packers or Eagles jersey.

Sportsvision (the guys behind the yellow line) offered it to Fox the first year for $25,000 per game. FOX turned them down, CBS and ABC wanted to think on it, ESPN took them up on the deal for the first season.

Sportsvision comes in three days before the game to run cable and take a laser survey of the field. They take swatches of grass before and during the game to make sure they have the right colors. Then the game broadcast is delayed 2/3 of a second to allow the first down line to be inserted.

Lots of technology just so we can holler about the spot of the football. Heck, I find it tough to go to a game in real life now. I keep looking for the yellow first down line on the field.

---

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [August 12, 2013, 5:08am UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/17 "2013-08-12T05:08:34Z")

</div>

Here’s a [nice video showing how it works](http://youtu.be/UyPU2l9rdvo?t=40s) (same as the HowStuffWorks story above, but with more visuals and animations).

---

<div class="post-metadata">

**Author:** ![R.P.McMurphy](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@R.P.McMurphy](https://boards.straightdope.com/u/R.P.McMurphy)\
**Post date:** [August 12, 2013, 5:39am UTC](https://boards.straightdope.com/t/in-sports-broadcasts-how-do-they-display-those-lines-on-the-field/665856/18 "2013-08-12T05:39:25Z")

</div>

> [@txtumbleweed](#):
>
> Sports Illustrated just did a story on the [birth of the yellow line](http://sportsillustrated.cnn.com/nfl/news/20130718/nfl-birth-of-the-yellow-line/) last month.
> 
> Lots of technology just so we can holler about the spot of the football. Heck, I find it tough to go to a game in real life now. I keep looking for the yellow first down line on the field.

Agreed. For the television viewer it is probably the most significant advancement since the instant replay. You get hooked on it very quickly.

It seems to me that since the introduction of it there are a lot fewer incidents where they delay the game to “bring out the chains”. I wonder if the refs are asking the booth what the line showed before they call for a measurement.
