This repo will help you to turn your PC into a surveillance camera. With this setup, you'll be able to monitor & record activities remotely. When movement is detected, it will save a video to your hard drive.
Watch the demo video on YouTube
- Go
- GoCV
- OpenCV
- Install Go from here.
- Install OpenCV following the instructions here.
- Install GoCV by following the instructions here.
- Clone the repository:
git clone https://github.com/jempe/spy_camera.git
- Navigate to the repo directory:
cd spy_camera
- Run the application:
go run main.go
- Access the camera stream from your browser:
http://localhost:4000
You can set the following flags when running the application:
-user
: Username for HTTP basic authentication (default: "username")-pass
: Password for HTTP basic authentication (default: "password")-h
: Show help
- Motion detection using OpenCV
- Save video when motion is detected
- HTTP basic authentication for accessing the stream
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.