Like the song which is totally present in the MGS series.
I got a bout of inspiration and built this in about a day.
Note: Only works on Wayland right now due to the usage of
grimas the screenshot utility.
solid.mp4
This tool constantly monitors your screen and:
- Matches visual content using ORB + OpenCV
- Extracts text using Tesseract OCR and checks for relevant keywords
- Captures the screen using
grim(Wayland screenshot utility) - Plays an MP4 audio clip using
ffplayfrom FFmpeg - Displays a fullscreen animated overlay using PyQt5
- Python 3.8 or newer
- Wayland display server
- Tesseract OCR
ffplay(part of FFmpeg)
Install using pip:
pip install opencv-python pytesseract PyQt5Install all system dependencies with:
sudo pacman -S \
tesseract tesseract-data-eng \
python-pytesseract opencv python-opencv \
python-pyqt5 grim ffmpeg --neededRun the detector script:
python3 main.py