A Python application that analyzes videos using YOLO object detection and generates descriptive scripts using LLMs.
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.envfile and add your OpenRouter API key:OPENROUTER_API_KEY=your_api_key_here
- Place your video file in the project directory
- Update the
VIDEO_PATHin.envif needed - Run the script:
python main.py
The script will generate a text file with the analysis of your video.