This is a simple Flask web application that streams video from your webcam. It allows you to switch between available cameras if you have multiple connected.
- Make sure you have Python installed on your system.
- Install the required packages:
pip install -r requirements.txt
Use the following command to start the application:
python app.py --port 7000
By default, the application runs on port 7000. You can specify a different port using the --port argument.
To view the home page, go to http://localhost:7000. From the home page, you can switch between available cameras and change the resolution.
To directly access the stream, go to http://localhost:7000/mjpeg. To access a jpg snapshot, go to http://localhost:7000/jpg.