![](http://web.archive.org./web/20240713180500im_/https://preview.redd.it/b-r-open-ice-2023-24-florida-panthers-stanley-cup-engraving-v0-p71uimnwsacd1.jpeg?width=640&crop=smart&auto=webp&s=7aa9bbc62705a5666bb958da40039b572aca878a)
![r/hockey - [B/R Open Ice] 2023/24 Florida Panthers Stanley Cup Engraving Names](http://web.archive.org./web/20240713180500im_/https://preview.redd.it/b-r-open-ice-2023-24-florida-panthers-stanley-cup-engraving-v0-p71uimnwsacd1.jpeg?width=640&crop=smart&auto=webp&s=7aa9bbc62705a5666bb958da40039b572aca878a)
![](http://web.archive.org./web/20240713180500im_/https://preview.redd.it/highest-scoring-nhl-last-names-in-scrabble-v0-fglry87o9bcd1.jpeg?width=640&crop=smart&auto=webp&s=6d19ea5fc2d9ae8ace7d556d392314ed899b193b)
![r/hockey - [OC] Highest Scoring NHL Last Names In Scrabble](http://web.archive.org./web/20240713180500im_/https://preview.redd.it/highest-scoring-nhl-last-names-in-scrabble-v0-fglry87o9bcd1.jpeg?width=640&crop=smart&auto=webp&s=6d19ea5fc2d9ae8ace7d556d392314ed899b193b)
![](http://web.archive.org./web/20240713180500im_/https://external-preview.redd.it/days-until-opening-night-v0-V5uItxEKY9WCXxeKzUK17Tlzins-u2d_mKoRR4M-dKg.jpg?width=640&crop=smart&auto=webp&s=f6c5d5ff0c2eed46c570c2c1af8c8538b258b28f)
![r/hockey - #83 Days until Opening Night](http://web.archive.org./web/20240713180500im_/https://external-preview.redd.it/days-until-opening-night-v0-V5uItxEKY9WCXxeKzUK17Tlzins-u2d_mKoRR4M-dKg.jpg?width=640&crop=smart&auto=webp&s=f6c5d5ff0c2eed46c570c2c1af8c8538b258b28f)
Is it going to be like a true international tournament like the Olympics or Canada/World Cup where these guys play their hearts out to try to win one for their country? Or is it going to be like an All Star game where they mess around, have fun, no one plays defense, no one wants to get injured heading into the playoffs, etc?
![](http://web.archive.org./web/20240713180500im_/https://preview.redd.it/tonyandrock-there-doesnt-appear-to-be-any-ahl-outdoor-games-v0-jyred2cbj6cd1.png?width=640&crop=smart&auto=webp&s=3b7138b19adde95ece4b908911811bf47bbc4860)
![r/hockey - [TonyAndrock] "There doesn't appear to be any AHL outdoor games on the 2024-25 schedule.
I'm told Chicago Blackhawks looked into having Rockford host an AHL outdoor game at Wrigley Field but were unable to make it work.
We could see AHL potentially return outdoors in 2026 though 👀 "](http://web.archive.org./web/20240713180500im_/https://preview.redd.it/tonyandrock-there-doesnt-appear-to-be-any-ahl-outdoor-games-v0-jyred2cbj6cd1.png?width=640&crop=smart&auto=webp&s=3b7138b19adde95ece4b908911811bf47bbc4860)
Introduction
While downloading NHL official player headshots for a graphic I was working on, an idea dawned on me which felt both very fun and interesting:
“Which player has the biggest smile in the NHL?”
We can calculate this by using computer vision! Let’s get to it.
Using CV for Facial Recognition
Facial Recognition
Using computer vision (CV) we can have a model which looks at each headshot and determine the location of facial features on each player. Thankfully, there is a public model available on GitHub which has done the legwork for us!
Italo José created which we can use for our task. Their model places landmarks on a person’s face to define facial features. For our project, we are looking just at the landmarks which make up the mouth.
What is a smile?
We are defining a smile as “the portion of a player’s mouth which is between their lips”. While that may be a mouthful, it is essentially the area of teeth which the model calculates. An example would better illustrate this.
For this example, we are looking at Sidney Crosby.
Looking good! The model accurately highlighted Sidney Crosby’s smile. While the smile isn’t fully captured, it is a good approximation. Now, to determine which players have the largest smiles, we need a method to calculate the polygons which make up their smile.
Calculating the Size of a Smile
The (also known as Gauss’s area formula) is an algorithm to calculate the area of a polygon, even irregular ones.
We can calculate the area of each player’s “smile” using this formula and then determine which players have the biggest smile!
With the areas calculated, we can now determine which players have the biggest smiles in the NHL
Here are the top 10 Smiles in the NHL by Area:
Conclusion
I actually did this project for MLB Players earlier this week and thought it would be fun to apply it to NHL players.
I hope you enjoyed!