• Home
  • >
  • Software Development
  • >
  • Using Python to Track and Make a Video Highlight of a Soccer Match…or a World Cup Highlight Reel? – InApps 2022

Using Python to Track and Make a Video Highlight of a Soccer Match…or a World Cup Highlight Reel? – InApps is an article under the topic Software Development Many of you are most interested in today !! Today, let’s InApps.net learn Using Python to Track and Make a Video Highlight of a Soccer Match…or a World Cup Highlight Reel? – InApps in today’s post !

Read more about Using Python to Track and Make a Video Highlight of a Soccer Match…or a World Cup Highlight Reel? – InApps at Wikipedia



You can find content about Using Python to Track and Make a Video Highlight of a Soccer Match…or a World Cup Highlight Reel? – InApps from the Wikipedia website

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:

soccer1

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.

autohighlight1

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.

Read More:   Developers Won’t Totally Rule the Enterprise – InApps Technology 2022

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?



Source: InApps.net

Rate this post
As a Senior Tech Enthusiast, I bring a decade of experience to the realm of tech writing, blending deep industry knowledge with a passion for storytelling. With expertise in software development to emerging tech trends like AI and IoT—my articles not only inform but also inspire. My journey in tech writing has been marked by a commitment to accuracy, clarity, and engaging storytelling, making me a trusted voice in the tech community.

Let’s create the next big thing together!

Coming together is a beginning. Keeping together is progress. Working together is success.

Let’s talk

Get a custom Proposal

Please fill in your information and your need to get a suitable solution.

    You need to enter your email to download

      Success. Downloading...