Skip to content

santidotpy/webcam-to-ipcamera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webcam-to-ipcamera

Description

This project is a simple implementation of a webcam to IP camera. It uses OpenCV to capture the webcam feed and Flask to serve the feed as an IP camera. The feed can be accessed by visiting the URL http://localhost:5000/cctv. You can access the feed from another device on the same network by replacing localhost with the IP address of the host machine.

This project originated from a personal need to monitor a kitten 🐱. At the time, the only tools available were a webcam and a laptop, which inspired the development of this solution.

Create virtual environment

python3 -m venv venv

Activate virtual environment

source venv/bin/activate

Install requirements

pip install -r requirements.txt

Run the server

python app.py

Note

If you have multiple webcams, you can specify the webcam index in the app.py file. You can run the list_webcams.py script to list all the available webcams and their indexes.

About

Simple Python application that streams live video from your webcam to a local web server using Flask and OpenCV. The feed can be viewed in real time via a web browser and includes an optional night vision filter and timestamp overlay.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages