{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"I shared [ball detection](https://www.kaggle.com/code/shinmurashinmura/dfl-yolov5-ball-detection).  \nHowever, I found that ball detection does not work well in the following situations.","metadata":{}},{"cell_type":"code","source":"!pip install moviepy -q","metadata":{"execution":{"iopub.status.busy":"2022-08-12T01:27:23.583008Z","iopub.execute_input":"2022-08-12T01:27:23.583834Z","iopub.status.idle":"2022-08-12T01:27:47.787797Z","shell.execute_reply.started":"2022-08-12T01:27:23.583700Z","shell.execute_reply":"2022-08-12T01:27:47.786708Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# Fog\nThis was apparently caused by the smoke bombs used by the supporters.","metadata":{}},{"cell_type":"code","source":"from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip\nfrom IPython.display import Video\n\nfilename = \"538438_6.mp4\"\npath = \"../input/dfl-bundesliga-data-shootout/clips/\"\nffmpeg_extract_subclip(path + filename, 0, 10, targetname = \"output.mp4\")\n    \nVideo(\"output.mp4\", width=800, embed=True)","metadata":{"execution":{"iopub.status.busy":"2022-08-12T01:27:47.790259Z","iopub.execute_input":"2022-08-12T01:27:47.790586Z","iopub.status.idle":"2022-08-12T01:27:48.433901Z","shell.execute_reply.started":"2022-08-12T01:27:47.790552Z","shell.execute_reply":"2022-08-12T01:27:48.432283Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# oblique sunshade","metadata":{}},{"cell_type":"code","source":"filename = \"40cd38_5.mp4\"\npath = \"../input/dfl-bundesliga-data-shootout/clips/\"\nffmpeg_extract_subclip(path + filename, 2, 10, targetname = \"output.mp4\")\n    \nVideo(\"output.mp4\", width=800, embed=True)","metadata":{"execution":{"iopub.status.busy":"2022-08-12T01:27:48.436731Z","iopub.execute_input":"2022-08-12T01:27:48.437243Z","iopub.status.idle":"2022-08-12T01:27:48.732162Z","shell.execute_reply.started":"2022-08-12T01:27:48.437200Z","shell.execute_reply":"2022-08-12T01:27:48.731234Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"# raindrops","metadata":{}},{"cell_type":"code","source":"filename = \"0a2d9b_0.mp4\"\npath = \"../input/dfl-bundesliga-data-shootout/clips/\"\nffmpeg_extract_subclip(path + filename, 7, 12, targetname = \"output.mp4\")\n    \nVideo(\"output.mp4\", width=800, embed=True)","metadata":{"execution":{"iopub.status.busy":"2022-08-12T01:27:48.733819Z","iopub.execute_input":"2022-08-12T01:27:48.734658Z","iopub.status.idle":"2022-08-12T01:27:49.122956Z","shell.execute_reply.started":"2022-08-12T01:27:48.734613Z","shell.execute_reply":"2022-08-12T01:27:49.121384Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}