Webcam over WebSocket using OpenCV and Tornado With Nigth Vison Mode(grayscale) and Light Mode And Face Reacognation
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 ] |
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
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message brokeOpenCV is a library of programming functions mainly aimed at real-time computer vision and highly optimized .
the "video" is streamd via a html "img" tag ☺ it would be grate if i cant do the same with audio