Militarizing Your Backyard with Python: Computer Vision and the Squirrel Hordes

A session at PyCon US 2012

Saturday 10th March, 2012

2:15pm to 2:55pm (PST)

Has your garden been ravaged by the marauding squirrel hordes? Has your bird feeder been pillaged? Tired of shaking your fist at the neighbor children? Learn how to use Python to tap into computer vision libraries and build an automated sentry water cannon capable of soaking intruders.

Using the Python bindings for the computer vision library, OpenCV, we will investigate the components and steps needed to power a sentry gun. In addition to basic object and motion tracking, concepts of object recognition (friend or foe) will be discussed. Communication and control of the underlying hardware is performed using Python and will also be covered.

Additional peace-time applications of the above technology will be demonstrated.

  • OpenCV
  • Object detection
  • Motion tracking
  • Friend-or-foe object recognition
  • Stereo vision
  • Building training sets with Amazon Mechanical Turk
  • Python-Arduino communication
  • Python + Kinect

About the speaker

This person is speaking at this event.
Kurt Grandis

entrepreneurship, software engineering, machine learning, NLP, educational technology, geekery bio from Twitter

Next session in D5

2:55pm Cache Rules Everything Around Me by Noah Silas and Jacob Burch

Coverage of this session

Sign in to add slides, notes or videos to this session

Tell your friends!


Time 2:15pm2:55pm PST

Date Sat 10th March 2012

Short URL


Official session page


View the schedule



See something wrong?

Report an issue with this session