Will JavaScript type annotations kill TypeScript?
The creators of Svelte and Turbo 8 both dropped TS recently saying that "it's not worth it".
Yes: If JavaScript gets type annotations then there's no reason for TypeScript to exist.
No: TypeScript remains the best language for structuring large enterprise applications.
TBD: The existing user base and its corpensource owner means that TypeScript isn’t likely to reach EOL without a putting up a fight.
I hope they both die. I mean, if you really need strong types in the browser then you could leverage WASM and use a real programming language.
I don’t know and I don’t care.
Software Development / Tech Life

Using Python to Track and Make a Video Highlight of a Soccer Match…or a World Cup Highlight Reel?

Jul 13th, 2014 2:05pm by
Featued image for: Using Python to Track and Make a Video Highlight of a Soccer Match…or a World Cup Highlight Reel?

I saw this last week and thought it was pretty clever. Using Python, the developer created an automated summary of video highlights from a professional soccer match. Zulko, as he goes by, used the assumption that soccer highlights could be tracked by how loud fans were during the game.

He opened the video file with Python and computed the audio volume of each second of the match:


By plotting the data, Zulko showed the loudness of the match after each goal was scored:

peaksHe found that the five highest peaks in volume correlated to the time  when a goal was scored. He then took the top 10 percent of the other peaks in volume to find other highlights. He further regrouped the data the cheers that were less than a minute apart.


The final_times "contains the times (in seconds) of 21 events, from which we can cut our video.” For each of the 321 events, he started five seconds before its time and stop five seconds after.

What resulted is a video 3:30 in length. There are some aspects of the match that confuses the algorithm, he writes. For example, broadcasters that do lots of replays or lower the sound after the goal.

Zulko provided the whole script for those who want to try it themselves.

This method could be used for other sports, movie highlights and other videos, Zulko writes.

So…who is going to make the automated World Cup highlight reel?

Group Created with Sketch.
THE NEW STACK UPDATE A newsletter digest of the week’s most important stories & analyses.