File size: 1,111 Bytes
4062b62
 
 
 
 
05da2c4
6ca058f
4062b62
 
 
 
 
06c9f97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
05da2c4
06c9f97
 
05da2c4
 
06c9f97
4def895
 
 
 
 
 
 
 
 
 
 
 
 
 
 
06c9f97
 
4def895
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
title: Pyronear Wildfire Detection
emoji: 🏆
colorFrom: blue
colorTo: pink
sdk: streamlit
python_version: 3.11
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
streamlit run app.py
```

Streamlit will print a local URL (for example, `http://localhost:8501`). Open it
in your browser and upload an MP4. Detection starts automatically after upload.

## Docker Compose + Make
Run with:
```bash
make run
```

Other commands:
```bash
make logs
make stop
make down
```

Then open `http://127.0.0.1:7860` in your browser.

## Notes
- The first run downloads the wildfire detection model from Hugging Face.
- `ffmpeg`/`ffprobe` are required for frame extraction.
- OpenCV is used for motion features and image processing.