HTTPS Motion JPEG streaming server for Python3 with OpenCV.
# Install requirments.
$ pip install SimpleHTTPSAuthServer opencv-python
# Use camera 0.
$ python streamer.py 0
then, access http://localhost:8000/cam.html (or cam.mjpg to get Motion JPEG stream directly).
For example, access http://localhost:8000/cam.html?mot=25 to apply motion detection filter.
To create your own filter, add your-filter-name.py
to /filter directory.
And then, access http://localhost:8000/cam.html?your-filter-name
.
See existing filters for more details.
Run python streamer.py -h
and see SimpleHTTPSAuthServer for more command line arguments.
(e.g., serve HTTPS, enable Basic authentication, etc.)