Video surveillance system. Created for Raspbian.
PiSurveillancer
│ app.js
│ server.js
|
└───frontend
│
└───node_modules
server.js--> Serverapp.js--> Web Client/frontend--> Client Files
- Install npm or yarn or pnpm
- Clone Code:
git clone https://github.com/MaxZell/PiSurveillancer.git cd PiSurveillancer- Install packages:
npm installoryarn install - Install opencv4nodejs:
npm i -g npm@6npm i opencv4nodejs --save
node server
- Install npm or yarn or pnpm
- Clone Code:
git clone https://github.com/MaxZell/PiSurveillancer.git cd PiSurveillancer- Install packages:
npm install - Build docker image:
sudo docker build -t nodecv . - Run Docker image with camera & port:
docker run --device=/dev/video0:/dev/video -p 1234:8888 nodecv
-- sudo docker ps
-- get container id
-- sudo docker kill <container-id>
- If only one image running:
sudo docker kill $(sudo docker ps -q)
- Install npm or yarn or pnpm
- Clone Code:
git clone https://github.com/MaxZell/PiSurveillancer.git cd PiSurveillancer- Install packages:
npm installoryarn install - Start:
npm startoryarn start - Open http://localhost:8000/