You are on page 1of 13

SPORTS HIGHLIGHT

GENERATION

By- YOGESH SHAH


PURPOSE
Sports highlights generation using
python,librosa, moviepy. 
Modules and libraries --
Python-Python is an interpreted high-level general-purpose programming
language. Python's design philosophy emphasizes code readability with its
notable use of significant indentation

Librosa-librosa is powerful Python library built to work with audio and perform
analysis on it.

Moviepy-MoviePy is a Python module for editing videos. It can cut and arrange clips,
add video effects, and edit audio. It can work like a toolbox, if you only make changes to
one clip.
WHAT I AM DOING…
Cricket is the most famous sport in India and played
in almost all parts of the country. So, being a die-hard
cricket fan, I decided to automate the process of highlights
extraction from a full match cricket video. Nevertheless,
the same idea can be applied to other sports as well.
Here is the step-by-step process:

• Input the full match video

• Extract the audio 

• Break the audio into chunks

• Compute short-time energy of every chunk


• Classify every chunk as excitement or not (based on a threshold value)

• Merge all the excitement-clips to form the video highlights


RESULT

24 minutes sports video clip converted to


6minutes highlight as shown in next slide
24 min video
6min video
FUTURE PROSPECTS

Different Approaches to Highlight Generation

1-Natural Language Processing (NLP) based approach

2-Computer Vision (CV) based approach


Natural Language Processing (NLP) based approach

Here is a step-by-step procedure:


• Extract the audio from an input video

• Transcribe the audio to text

• Apply Extractive based Summarization techniques on text to identify the most important phrases

• Extract the clips of corresponding important phrases to generate highlights


Computer Vision (CV) based approach

This computer vision-based approach will come across as quite intuitive. Computer vision is, after all,

the field where we train our machines to look at images and videos. So one way to generate highlights

using computer vision is to track the scorecard continuously and extract clips only when there is a

four, six or a wicket.


THANK
YOU

You might also like