GithubHelp home page GithubHelp logo

araujo88 / py-security-camera Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 23 KB

A simple security camera written in Python which starts recording when a face is detected and warns the user by e-mail.

License: GNU General Public License v3.0

Python 100.00%
security-camera security-cam security-camera-python opencv opencv-python opencv2-python opencv2

py-security-camera's Introduction

py-security-camera

A simple security camera written in Python which starts recording when a face is detected and warns the user by e-mail using the Python library OpenCV.

Installation and settings

Install requirements:

  • pip install -r requirements.txt (Windows)
  • pip3 install -r requirements.txt (Linux/macOS)

Configure settings:

  • Set EMAIL_USER and EMAIL_PASSWORD as system variables
  • Substitute [email protected], [email protected] and smtp.email.com in the py-security-camera.py file with your sender and destinatary e-mails and your e-mail provider. Make sure to use SMTPS (secured SMTP).

Usage

Run the program with:

  • python py-security-camera.py (Windows)
  • python3 py-security-camera.py (Linux/macOS)

When the program is running, the webcam is turned on and cannot be used by other applications. It starts recording whenever a face is detected by the camera and sends an e-mail warning to the preconfigured e-mail setting.

It stops recording 5 seconds after no face is being detected on screen. This 5 seconds setting can be modified by altering the variable SECONDS_TO_RECORD_AFTER_DETECTION.

The application can be exited by pressing q.

py-security-camera's People

Contributors

araujo88 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

justj123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.