Skip to content

Webcam over WebSocket using OpenCV and Tornado With Nigth Vison Mode(grayscale) and Light Mode And Face Reacognation

License

Notifications You must be signed in to change notification settings

AmineFouzai/PYCCTV

Repository files navigation

PYCCTV

Webcam over WebSocket using OpenCV and Tornado With Nigth Vison Mode(grayscale) and Light Mode And Face Reacognation


setup:

1) git clone https://github.com/MedAmineFouzai/https://github.com/MedAmineFouzai/PYCCTV
2) cd PYCCTV
3) pip install pipenv
4) pipenv --python 3.6
5) pipenv install - r requirements.txt
6) run project with torn cli : #command: [ torn run ]

Theory:

the purpose of this project is to mimic a cctv over network using websocket protocol with web technologies. A CCTV pick up the images, which are then transmitted then to a recording device and then a monitor in this case the webcam well save the images with the help of opencv then saving it to redis and send it via tornado server to a real time show on te browser.

this kind of way called a MJPEG Stream

Technologies:

Redis:

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broke

OpenCV:

OpenCV is a library of programming functions mainly aimed at real-time computer vision and highly optimized .

Resualt:

Motion MJPEG

In multimedia, Motion JPEG (M-JPEG or MJPEG) is a video compression format in which each video frame or interlaced field of a digital video sequence is compressed separately as a JPEG image

For Future Usage:

the "video" is streamd via a html "img" tag ☺ it would be grate if i cant do the same with audio

About

Webcam over WebSocket using OpenCV and Tornado With Nigth Vison Mode(grayscale) and Light Mode And Face Reacognation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published