FabBits is a standalone cross-platform software capable of finding certain interesting bits from movies/shows, soccer, and basketball. Following are the things it will be able to detect -
- Action sequences in movies/shows - ✅
- Summary of movies/shows - ✅
- Actor-specific scenes in movies/shows - ✅
- Jokes in sitcoms - ✅
- Slo-mos in Sports - ❌
- Goals in Soccer - ✅
- Goal misses in Soccer - ⭕
- Three pointers in Basketball - ✅
You need the following things to run FabBits -
- Python3
- OpenCV - Used for image and video processing
- Moviepy - Used for video editing and audio processing
- PyQt5 - Used to make the GUI
- Scipy - Used for audio processing
- Tesserocr - Used for, well, OCR
- Pillow - Used to preprocess images for OCR
The python dependencies can be installed by running -
pip3 install scipy
pip3 install opencv-python
pip3 install moviepy
pip3 install pyqt5
pip3 install Pillow
pip3 install tesserocr
or if you are the Anaconda kind -
conda install -c conda-forge scipy
conda install -c conda-forge opencv
conda install -c conda-forge moviepy
conda install -c anaconda pyqt
conda install -c conda-forge pillow
conda install -c simonflueckiger tesserocr
Once that's done, run the main GUI by -
python3 main.py
To find your FabBit of choice -
- Click
MOVIES
orSPORTS
button for their respective use-cases - Select the use-case from the sidebar
- A pop-up dialog will ask for the actor if actor-specific scene was chosen
- Click on
Choose File
to select the input video - Click on
Find FabBits
- Move the slider in the blue areas, which are the extracted FabBits, and play the video
- Click on
Save FabBits
to save the extracted stuff into a video file
You can also run the respective files of use-cases to get their FabBit, like -
python3 goal_detector.py soccer_match.mp4
I have mentioned almost everything about how I built FabBits on my blog. Give it a read if you want to build something involving the use-cases I have done!
This drive folder contains a list of videos and the video output FabBits produced.
Pull requests are welcome! Although for major changes, please open an issue first to discuss what you would like to change.
Audio-Based Action Scene Classification Using HMM-SVM Algorithm by Khin Myo Chit, K Zin Lin
Action Scene Detection with Support Vector Machines; Liang-Hua Chen, Chih-Wen Su et a
Detecting Soccer Goal Scenes from Broadcast Video using Telop Region; Naoki Ueda, Masao Izumi
Primary Detection Methods for Laugh Tracks