Skip to content

A Go-based surveillance system that uses OpenCV and GoCV to turn your PC into a motion-detecting camera, saving videos locally when activity is detected.

License

Notifications You must be signed in to change notification settings

jempe/spy_camera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spy Camera

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

Requisites

  • Go
  • GoCV
  • OpenCV

Installation

  1. Install Go from here.
  2. Install OpenCV following the instructions here.
  3. Install GoCV by following the instructions here.

Usage

  1. Clone the repository:
    git clone https://github.com/jempe/spy_camera.git
  2. Navigate to the repo directory:
    cd spy_camera
  3. Run the application:
    go run main.go
  4. Access the camera stream from your browser:
    http://localhost:4000
    

Configuration

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

Features

  • Motion detection using OpenCV
  • Save video when motion is detected
  • HTTP basic authentication for accessing the stream

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

About

A Go-based surveillance system that uses OpenCV and GoCV to turn your PC into a motion-detecting camera, saving videos locally when activity is detected.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages