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

dvdbrgs/old_turret

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 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 add this app to permitted applications in your Google account when required.

To use this project the following needs to be installed:

  • OpenCV cv2 (>=2.4):

    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
    

    Make sure your OpenCV version is at least 2.4, otherwise face recognition won't work!

    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
    
  • PyDrive:

      $ sudo pip install PyDrive
    

    PyDrive uses OAuth2.0 authentication. In order to enable uploads, you must register the application. Detailed instructions can be found in this link: https://pythonhosted.org/PyDrive/quickstart.html Look for the Authentication section.

  • 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, Python 2.7.5 and OpenCV 3.0.0

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