<!-- mobian-agent-page publisher="time" canonical="https://time.com/5440226/president-jack-o-lantern-halloween/" -->

---
description: A little Halloween fun with everyone from Washington to Trump.
title: Here&#x27;s What Every President Would Look Like As a Jack-o-Lantern
image: https://static.time.com/v3/assets/bltea6093859af6183b/bltde093bcdab65f2d0/6988d9b9bc6cfc69913e2a3c/time-logo.jpg?branch=production
---

* [Newsfeed](/tag/time-section-newsfeed/)  
## Newsfeed  

Update your preferences in [Account Settings](/account/preferences/)  
Close

# Here's What Every President Would Look Like As a Jack-o-Lantern


![Chris Wilson](https://static.time.com/v3/assets/bltea6093859af6183b/blt066f65b2796a2b6d/698688f61eebf77b4c370360/voss-timeheadshots23final.jpg?branch=production&width=3840&quality=75&auto=webp&crop=1:1)

by 

[Chris Wilson](/author/chris-wilson/)


![Chris Wilson](https://static.time.com/v3/assets/bltea6093859af6183b/blt066f65b2796a2b6d/698688f61eebf77b4c370360/voss-timeheadshots23final.jpg?branch=production&width=96&quality=75&auto=webp)

## Chris Wilson


Update your preferences in [Account Settings](/account/preferences/)

Close

Oct 31, 2018 4:46 PM CUT

![Chris Wilson](https://static.time.com/v3/assets/bltea6093859af6183b/blt066f65b2796a2b6d/698688f61eebf77b4c370360/voss-timeheadshots23final.jpg?branch=production&width=3840&quality=75&auto=webp&crop=1:1)

by 

[Chris Wilson](/author/chris-wilson/)


![Chris Wilson](https://static.time.com/v3/assets/bltea6093859af6183b/blt066f65b2796a2b6d/698688f61eebf77b4c370360/voss-timeheadshots23final.jpg?branch=production&width=96&quality=75&auto=webp)

## Chris Wilson


Update your preferences in [Account Settings](/account/preferences/)

Close

Oct 31, 2018 4:46 PM CUT

A few weeks ago, I was at a [data conference](https://www.wolfram.com/events/technology-conference/2018/ "undefined") where the computer scientist Stephen Wolfram demonstrated how his software, Mathematica, now has [an experimental function](https://reference.wolfram.com/language/ref/FacialFeatures.html "undefined") to identify specific facial features in a photo of a person, like eyebrows, noses and lips. My first thought was: huh, this is sort of like a computational Jack-o’-Lantern.

To test this premise, I conducted an experiment by running the function on images of all 44 presidents, which successfully identified all the prominent features in their faces — even for those venerable presidents who refused to make eye contact with the painter.

By overlaying the results on a pumpkin, I present a digital Jack-o’-Lantern of every commander in chief:

**Heres How It Works**

Benedict Cumberbatch will never be the President of the United States, but let’s use him as an example. Mathematica identifies eight features: Two eyes, two eyebrows, the nose, the lips and inner mouth, and the outline of the face along the chin.

![](https://static.time.com/v3/assets/bltea6093859af6183b/blt78a9bf8e992952e5/69893de5e76ad20c32633608/bc2.png?branch=production&width=1920&quality=75&auto=webp)

Using these points, one can then convert them into polygons, excluding the chin and inner mouth.

![](https://static.time.com/v3/assets/bltea6093859af6183b/blt3b61da475fea4af9/69893de5096a9467c66a3cfa/bc3.png?branch=production&width=1920&quality=75&auto=webp)

As I found out the hard way, if you just stick these polygons on a pumpkin, pretty much everyone looks identical. So I cheated a little and converted the original image to orange and cut out the countenance to add to the final product.

![](https://static.time.com/v3/assets/bltea6093859af6183b/blt7a5ab2804556d9d4/69893de84ee26231903133e0/bc6.png?branch=production&width=1080&quality=75&auto=webp)

From there, it’s pretty simple: You add the face to the pumpkin and cut out the polygons to get the final pumpkin mask:

![](https://static.time.com/v3/assets/bltea6093859af6183b/blt6814efcb83624c51/69893de67cdbac88c9d5e4e7/bc5.png?branch=production&width=828&quality=75&auto=webp)

And there you have it. Add a little flickering light in the background. And then do it 44 times.

![](https://static.time.com/v3/assets/bltea6093859af6183b/blt48f5a29f10a84fec/69893deab21a9c9ad94ff5c1/bc.gif?branch=production&width=828&quality=75&auto=webp)

_Sources:_ All images used are public domain: The pumpkin comes from [here](http://www.publicdomainfiles.com/show%5Ffile.php?id=13979964619467 "undefined"), and all presidential images came from either Wikipedia or the Smithsonian’s collection of portraits.

**Try It Yourself!**

I’ve published the code to make these “Wolf-o’-Lanterns” [to the Wolfram Cloud](https://www.wolframcloud.com/objects/58ab3d30-9deb-4b5f-a066-794f9901eb6e "undefined"), so you can see exactly how it works and even run it yourself if you make an account.

```json
[{"@context":"https://schema.org","@type":"NewsArticle","@id":"https://time.com/5440226/president-jack-o-lantern-halloween/","mainEntityOfPage":{"@type":"WebPage","@id":"https://time.com/5440226/president-jack-o-lantern-halloween/"},"headline":"Here's What Every President Would Look Like As a Jack-o-Lantern","datePublished":"2018-10-31T16:46:09.000Z","dateModified":"2026-05-11T04:46:13.167Z","description":"A little Halloween fun with everyone from Washington to Trump","url":"https://time.com/5440226/president-jack-o-lantern-halloween/","keywords":["Newsfeed","Presidents","halloween","onetime","interactive studios","halloween 2018"],"thumbnailUrl":"","author":[{"@type":"Person","name":"Chris Wilson","jobTitle":null,"url":"https://time.com/author/chris-wilson/"}],"articleSection":"","image":[],"publisher":{"@type":"Organization","name":"Time","url":"https://time.com/","logo":{"@type":"ImageObject","url":"https://time.com/images/logo.png","width":528,"height":156},"foundingDate":"March 3, 1923","sameAs":["https://www.facebook.com/time","https://www.instagram.com/time/?hl=en","https://twitter.com/time","https://www.pinterest.com/timemagazine"]}},{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/tag/time-section-newsfeed/","name":"Newsfeed"}},{"@type":"ListItem","position":2,"item":{"@id":"https://time.com/5440226/president-jack-o-lantern-halloween/","name":"Here's What Every President Would Look Like As a Jack-o-Lantern"}}]}]
```
