Project Sentry Gun
Written by Harry Fairhead   
Sunday, 01 April 2012

After our news item on using Python to shoot water at squirrels, a number of readers wrote to tell us about Project Sentry Gun which has been working on the same problem for some time.

The basic idea is to create an automatic gun which can protect an area. The basic hardware you need are three servos, an Arduino and a web cam. You also need a gun and tripod and a lot of creative effort seems to go into making these look as realistic, or futuristic, as possible. The guns used in the showcase projects are paint ball or airsoft models but you could use a water pistol or worse if you were serious about protection.

Yes there is a sinister side to this device. The project may be fun but in the wrong hands this sort of technology could be more than just dangerous.

 

gun1

 

The open source software is written in Processing and runs on a laptop which communicates with an Arduino controller. The image processing is fairly basic but with tweaking it seems to be effective. A movement detection algorithm based on background subtraction triggers the gun. The only sophistication is an ability to use a motion vector to fire at the predicted location of the target. There is no  clever AI that recognizes what the target is - human, animal or machine - and certainly no person recognition for friend or foe detection. You can set a safe color to allow someone wearing the right clothing to enter the protected zone without being shot at.

 

gun2

 

Assuming you have the laptop and the webcam then the whole lot can be built for just over $100 and perhaps this is the future of home security - but some countries have laws about what you can and cannot do to an intruder.

As this is an open source project then perhaps this is a good place to work on AI algorithms to improve the gun's performance. A Kinect sensor would also make the task simpler.

 

gun3

More Information

Project Sentry Gun

Related Reading

Militarizing Your Backyard with Python and AI

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

 

To be informed about new articles on I Programmer, subscribe to the RSS feed, follow us on Google+, Twitter, Linkedin or Facebook or sign up for our weekly newsletter.

 

Banner


OpenAI Library For .NET Exits Beta
19/11/2024

A few months ago the OpenAI .NET library was released as a beta. It has now reached version 2.0.0 and the time has come to leave beta and, with a few amendments enter production readiness.



Wasmer 5 Adds iOS Support
12/11/2024

The Wasmer team has released Wasmer 5.0. The WebAssembly runtime adds experimental support for more back ends including V8, Wasmi and WAMR. It also now has iOS support, and upgraded compilers includin [ ... ]


More News

Last Updated ( Sunday, 01 April 2012 )