/Security-camera

This python code is a security camera program using USB Web Cam. in this product. The system output the mp4 video which is captured with "difference extraction" technology.

Primary LanguagePython

Security-camera

This python code is a security camera program using USB Web Cam. in this product. The system output the avi video which is captured with difference extraction technology.

Main Features

  • Strong Reduction of its SD memory occupation with difference extraction Technology.
  • Reporting a daily bulletin through on Gmail.
  • Supervise the main program by reporting.py.
  • Delete one week ago camera data automatically.

System Overview

Requirement

  • Raspberry pi 3
  • ubuntu16.04
  • Python 3.x
  • Opencv
  • Web Camera x2

Setting

demo2.py property

  • image size adjust heght and width variables.

reporting.py property

Set the email infomation to send a daily report through on gmail.

from_email = "senderhogehoge@gmail.com" # 送信元のアドレス
to_email = "receiverhogehoge@gmail.com" # 送りたい先のアドレス
username = "sender@gmail.com"           # Gmailのアドレス
password = "mygmailpassword"            # Gmailのパスワード

and you have to lower its Google Security level (if not doing that, you can't send email from gmail and recieve the security alart mail from google).

Usage

Basic Example

$ python3 demo2.py

report program example

This program provides three function,Reporting on gmail,deleting one week ago camera data, program activity check (every one hour).

$ python3 reporting.py

Licence

MIT

Related Articles

Author

ShuDiamonds