This is a project that invovles stitching 3 videos of a soccer match into a panorama view, and transform the view into a top down view with the players' position being shown.
###Requirements:
- 3 videos of the soccer match named the following:
- football_left.mp4
- football_mid.mp4
- football_right.mp4
###Procedure:
-
Run
Generate_Panorama.py
to generate the stitched up video, and a folder named "FullSize" which contains the full resolution of the stitched up frames for further processing. Do take note that the FullSize folder is more than 14GB -
Next, using the frames in FullSize folder, we aim to track the players and the referee.
-
Generate a background image by running
backgroundMaker.py
, which takes in the frames from FullSize folder, and runs an averaging algorithm to get the background of the scene. -
Run
Player_detection_final
to generate a text document of the players' position -
Finally, call upon
topDown.py
to produce the top down video, and the panorama video with the offside line.