Skip to content

Python script that subscribes to a webcam to detect objects of interest (in this case, birds). On detection, it records for a few seconds and then sends a video to a list of emails over smtp.

License

Notifications You must be signed in to change notification settings

giulionf/birdwatch

Repository files navigation

Example result

Getting Started

Creating an email account

  1. Create a (Google-)mail Account
  2. Enable insecure Apps under https://www.google.com/settings/security/lesssecureapps

Setting up the environment

  1. Create a new python 3.7 environment (e.g. with conda, as follows):
    conda create -n birdwatch python==3.7
    conda activate birdwatch
    
  2. Install the requirements
    pip3 install -r requirements.txt 
    
  3. It might be necessarry to install opencv separately for conda
    conda install -c conda-forge opencv
    

Executing the program

python main.py --rtsp_url [VIDEO_STREAM_URL] --sender_mail [BOT_EMAIL] --sender_pw [BOT_EMAIL_PW] --recipient_mails [RECIPIENT1] [RECIPIENT2]

About

Python script that subscribes to a webcam to detect objects of interest (in this case, birds). On detection, it records for a few seconds and then sends a video to a list of emails over smtp.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages