项目作者: patryklaskowski

项目描述 :
Source multiple videos from IP cameras and live stream in browser. Allows to apply filters as well as machine learning models right on with results shown.
高级语言: Jupyter Notebook
项目地址: git://github.com/patryklaskowski/IP-Cam-DataReader.git
创建时间: 2020-09-26T21:10:49Z
项目社区:https://github.com/patryklaskowski/IP-Cam-DataReader

开源协议:

下载


IP-Cam-DataReader

made-with-Python
made-with-Flask
made-with-OpenCV


Web page application that live stream video from multiple IP cameras.
With little customization application of any video filter or machine learning algorithm should be easy.

1. Download github repository

  1. git clone https://github.com/patryklaskowski/IP-Cam-DataReader.git
  2. cd IP-Cam-DataReader

2. It is reccomended to run virtual environment to prevent version problems.

  1. python3.7 -m venv env
  2. source env/bin/activate

3. Install required libraries

  1. pip install -r requirements.txt

4. Run app

  1. python main.py

Terminal screenshot

[NOTE:]

Use flag -u or --url to add custom video sources

e.g. python main.py --url http://187.157.229.132/mjpg/video.mjpg --url http://162.245.149.145/mjpg/video.mjpg

This example source data from two IP cameras. There is no limits on urls count.

There are many unsecured IP cams to explore here.

That’s it. App should be now up and running on http://0.0.0.0:5000/.
You are also able to visit this page from other devices in the same local area network.

Application screenshot

Once you’re done close the app by pressing ctrl+c in terminal.

5. Deactivate virtual environment

  1. deactivate

TODO:

  • support .mjpg file type
  • support .jpg file type
  • add modeule that create full url link to video just by providing IP and PORT number. This database might help.