Welcome to the YOU DIED Detector, a powerful tool that analyzes video content to detect occurrences of the famous "YOU DIED" message from the Dark Souls universe. This tool uses OCR (Optical Character Recognition) combined with color detection to identify the red-colored "YOU DIED" text in videos and creates a highlights reel.
Do you want to relive the moment you perished over and over? This tool will show you where, when, and how often!
Before you begin, make sure your machine meets the following requirements:
- Python 3.7+
- Internet connection to install dependencies
- Videos featuring YOU DIED in red text for the best experience!
-
Clone the Repository
git clone https://github.com/yourusername/DeathTextDetector.git cd DeathTextDetector
-
Create a Virtual Environment This project uses a virtual environment to manage dependencies. To create and activate the environment, run the following:
On Windows:
python -m venv DeathTextDetector DeathTextDetector\Scripts\activate
On macOS/Linux:
python3 -m venv DeathTextDetector source DeathTextDetector/bin/activate
-
Install Required Libraries Install all necessary libraries using the following:
pip install -r requirements.txt
If the
requirements.txt
is not available, install the libraries manually:pip install easyocr opencv-python moviepy gradio
- Ensure you have activated the virtual environment.
- Run the Gradio UI:
This will launch a Gradio interface in your web browser where you can upload videos or provide local file paths.
python DeathTextDetector.py
-
Upload Your Video: Either drag and drop a video file into the "Upload Video" box or provide the path to a video file on your computer.
-
Select GPU (Optional): If your machine supports GPU acceleration, you can check the Use GPU option for faster processing.
-
Submit the Video: Hit the Submit button to start the magic. Watch the progress bar update as the tool processes your video!
-
View the Results: The tool will detect every 'YOU DIED' moment and return the total count in a large, eerie red font to match the dark fantasy theme.
-
Download Highlights: If 'YOU DIED' moments are found, a link will appear for you to download the highlights reel.
May the flames guide thee...
Distributed under the MIT License. See LICENSE
for more information.
Author: Yaniv Cohen
Project Link: DeathTextDetector
Happy Dying!