patryklaskowski / IP-Cam-DataReader

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

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

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

3. Install required libraries

pip install -r requirements.txt

4. Run app

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

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.

About

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.


Languages

Language:Jupyter Notebook 99.8%Language:Python 0.1%Language:HTML 0.1%