Skip to content

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiSurveillancer

Video surveillance system. Created for Raspbian.

File Structure

PiSurveillancer
│   app.js
│   server.js
|   
└───frontend
│   
└───node_modules

  • server.js --> Server
  • app.js --> Web Client
  • /frontend --> Client Files

Install Server with Camera

  • Install npm or yarn or pnpm
  • Clone Code: git clone https://github.com/MaxZell/PiSurveillancer.git
  • cd PiSurveillancer
  • Install packages: npm install or yarn install
  • Install opencv4nodejs:
    • npm i -g npm@6
    • npm i opencv4nodejs --save

Start Server with Camera

node server

Start Server in Docker

  • 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

Stop Server Docker Image

-- sudo docker ps -- get container id -- sudo docker kill <container-id>

  • If only one image running: sudo docker kill $(sudo docker ps -q)

Start Frontend

  • Install npm or yarn or pnpm
  • Clone Code: git clone https://github.com/MaxZell/PiSurveillancer.git
  • cd PiSurveillancer
  • Install packages: npm install or yarn install
  • Start: npm start or yarn start
  • Open http://localhost:8000/

Author

Maxim Zelensky

About

Video surveillance system

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages