2023-08-23 11:02:25 +00:00
|
|
|
# Flask Camera Live Stream
|
2020-09-21 20:44:29 +00:00
|
|
|
|
2023-08-23 11:02:25 +00:00
|
|
|
[Original Project](https://github.com/EbenKouao/pi-camera-stream-flask)
|
2020-09-21 20:44:29 +00:00
|
|
|
|
2023-08-23 11:02:25 +00:00
|
|
|
## Usage
|
2020-09-21 20:44:29 +00:00
|
|
|
|
2023-08-23 11:02:25 +00:00
|
|
|
### Creating the virtual environment
|
2020-10-09 04:10:43 +00:00
|
|
|
|
|
|
|
```
|
2023-08-23 11:02:25 +00:00
|
|
|
pip install venv
|
|
|
|
python -m venv venv
|
2020-10-09 04:10:43 +00:00
|
|
|
```
|
|
|
|
|
2023-08-23 11:02:25 +00:00
|
|
|
### Activate the virtual environment
|
2021-10-29 14:54:30 +00:00
|
|
|
|
2023-08-23 11:02:25 +00:00
|
|
|
*Windows (CMD)*
|
2021-10-29 14:54:30 +00:00
|
|
|
|
|
|
|
```
|
2023-08-23 11:02:25 +00:00
|
|
|
venv\Scripts\activate.bat
|
2021-10-29 14:54:30 +00:00
|
|
|
```
|
2020-10-09 04:10:43 +00:00
|
|
|
|
2023-08-23 11:02:25 +00:00
|
|
|
*Linux / Mac OS*
|
2020-09-21 20:44:29 +00:00
|
|
|
|
|
|
|
```
|
2023-08-23 11:02:25 +00:00
|
|
|
source venv/bin/activate
|
2020-09-21 20:44:29 +00:00
|
|
|
```
|
|
|
|
|
2023-08-23 11:02:25 +00:00
|
|
|
### Installing the dependencies
|
2020-09-21 20:44:29 +00:00
|
|
|
|
2020-10-10 00:36:31 +00:00
|
|
|
```
|
2023-08-23 11:02:25 +00:00
|
|
|
pip install -r requirements.txt
|
2020-10-10 00:36:31 +00:00
|
|
|
```
|
|
|
|
|
2023-08-23 11:02:25 +00:00
|
|
|
### Running the app (not recommended for production)
|
2020-10-10 00:36:31 +00:00
|
|
|
|
|
|
|
```
|
2023-08-23 11:02:25 +00:00
|
|
|
python main.py
|
|
|
|
```
|