--- title: Pyronear Wildfire Detection emoji: 🏆 colorFrom: blue colorTo: pink sdk: gradio sdk_version: 6.5.1 app_file: app.py pinned: false license: apache-2.0 --- # MP4 to 8 Frames + Wildfire Detection for Pyronear Upload an MP4, extract evenly spaced frames, run wildfire detection on each, and display the main detections (one image per main detection). ## Requirements - Python 3.9+ - Packages listed in `requirements.txt` ## Install ```bash python -m venv .venv source .venv/bin/activate pip install -r requirements.txt ``` ## Run ```bash python app.py ``` Gradio will print a local URL (for example, `http://127.0.0.1:7860`). Open it in your browser, upload an MP4, and click "Detect". ## Notes - The first run downloads the wildfire detection model from Hugging Face. - The app prefers OpenCV for random frame access and falls back to imageio if OpenCV is not available.