Skip to content

Literally a retarded webcam server that will operate at TCP limits

Notifications You must be signed in to change notification settings

hntirgeam/py-camera-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retarded-webcamera-server

Literally a retarded localhost webcamera server

First of all we wanted to stream webcamera feed to localhost. Accepting that motion linux package was not an option we decided to find our own way to achieve our goal.

We've spent 4 hours trying to implement it using cv2 with acceptable FPS (just in case: it was running on 6y old lenovo) to find out that somebody have already done it using v4l2...

After 2 more hours of pain we gave up, tweaked some settings and executed git push --force --no-verify

---> There is also a branch with v4l2 under the hood. Just in case: git checkout v4l2-version

Installation

python3 -m venv venv

source venv/bin/activate

pip install -r requirements.txt

Prerequirements

export CAMERA_ID=<your_camera_id from /dev/video*>

Production run (ofc it will be run in prod)

gunicorn --bind 0.0.0.0:5000 wsgi:app -t 0 --threads=64

Debug run (preferred)

python app.py

About

Literally a retarded webcam server that will operate at TCP limits

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages