Skip to content

People detection software written in Python, using openCV, based on turrets from the Portal games. It continuously scans the environment using image processing and saves frames where humans are detected.

License

Notifications You must be signed in to change notification settings

juniorfarrapo/turret

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turret

People detection software written in Python, using openCV, based on turrets from the Portal games. It continuously scans the environment using image processing and saves frames where humans are detected.

Run with:

    $ python turret.py

This turret is able to save all people detections in a folder inside your Google Drive account. If you want this functionality, you'll have to input your login data when required. Also, as we're using a somewhat old login method, Google will block this application by default. To enable the Google Drive functionality, you'll have to visit this link https://www.google.com/settings/security/lesssecureapps and enable access for less secure apps.

Note: please, do not input your login data if you do not trust this program. Check our code, so you can trust it.

To use this project the following needs to be installed:

  • OpenCV cv2:

    On Linux, OpenCV for Python will probably be in the repositories of your distribution. In this case, use your package manager to install it.

    On Debian and derivatives (Ubuntu, Mint, elementary OS...):

      $ sudo apt-get install python-opencv
    

    If your distro's repositories doesn't have an OpenCV version available, try this PPA:

      $ sudo add-apt-repository ppa:alexei.colin/opencv
      $ sudo apt-get update
      $ sudo apt-get install python-opencv
    

    If this does not work and you don't use APT management tool, then try a more hardcore method. A friend suggested the following tutorial:

    http://www.samontab.com/web/2014/06/installing-opencv-2-4-9-in-ubuntu-14-04-lts/

  • Pygame:

    On Debian and derivatives (Ubuntu, Mint, elementary OS...)

      $ sudo apt-get install python-pygame
    
  • gdata:

    For our purposes, gdata version must be 2.0.15 or above.

    On Debian and derivatives (Ubuntu, Mint, elementary OS...)

      $ sudo apt-get install python-gdata
    

    If the repositories of your distribution only have an older version of gdata, you can try to install with python-pip:

      $ sudo pip install gdata
    

    Or you can download and install python-gdata from the following list:

    https://code.google.com/p/gdata-python-client/downloads/list

  • GTK2:

    Our GUI uses GTK. If you don't have these for Python, use:

      $ sudo apt-get install python-gtk2 gtk2-engines-pixbuf
    

Note: This code has been tested in Ubuntu 14.04 and Python 2.7.5.

About

People detection software written in Python, using openCV, based on turrets from the Portal games. It continuously scans the environment using image processing and saves frames where humans are detected.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%