Slashdot Mirror


Militarizing Your Backyard With Python and AI

mikejuk writes "Kurt Grandis took some cutting edge and open source AI tools, Python, an Arduino and a SuperSoaker and built the (almost) perfect squirrel hosing machine. The project involved Open Computer Vision (OpenCV), an a SVM learning procedure that he trained to tell the difference between a squirrel and a non-squirrel. After 'perfecting' the classifier the hardware came next — a SuperSoaker Mark I was used as the 'water cannon.' A pair of servos were used to aim the gun and a third to pull the trigger."

24 of 112 comments (clear)

  1. Re:PITA Time? by sideslash · · Score: 5, Funny

    No, no no. PITA is the kind of bread you wrap your roasted squirrel meat in. _PETA_ is what you're thinking of.

  2. See it in action at 16:00 by Garth+Smith · · Score: 3, Informative

    Actual footage of the device in action starts at 16:00 if you want to skip the tech talk.

    1. Re:See it in action at 16:00 by Zakabog · · Score: 3, Informative

      Or you can also just watch that section on youtube

  3. The first law of squirrels by Anonymous Coward · · Score: 5, Funny

    Squirrels are persistent.

    If you have something they want, they will find a way to get it. If it takes you 3 weeks to build a cage to keep them out, they will search for 3 days until they find or make a hole in the cage. If you put the desired item on top of a slippery pole, they will jump from surrounding objects hundreds of times until they finally get there. If you cut down all the trees around the item, they will try going up the pole until they rub all the slippery stuff off. If you put the item on the moon, they will invent the rocket.

    So I would advise against this escalation of the arms race against Rodentia. If we build electronic weapons to keep them away they will probably develop electronic countermeasures, and we don't want that.

    1. Re:The first law of squirrels by CaptBubba · · Score: 5, Interesting

      I've had really good luck with a commercial "Squirrel Buster" tube bird feeder which has a spring-suspended cage around the entirety of the tube. They jump on and their fat ass pulls the cage down to where they cannot get the seed. They can see the seed, they can smell the seed, but they cannot eat the seed. They get so pissed off at that thing and it is wonderful.

      Grackles however are an entirely different matter and I'd love to have this water gun setup for them. I imagine a large black bird would be pretty easy to target too.

  4. Re:PITA Time? by 93+Escort+Wagon · · Score: 4, Interesting

    Now watch PITA call animal cruelty on this dude.

    I don't know where this dude lives, but here in Washington state the Eastern Gray squirrel is an invasive non-native species, even though they're pretty much everywhere. They've largely displaced our native squirrel population. In most places you can kill them without problem - you're doing the local ecology a favor, after all - although it's always possible some wacko fringe element will protest the killing. I don't know about locales like Seattle, though; I wouldn't put it past them to have laws against killing animals considered "cute".

    Anyway if this guy gets dinged, maybe he just needs to replace the Super Soaker with a .12 gauge...

    --
    #DeleteChrome
  5. Re:PITA Time? by ColdWetDog · · Score: 5, Funny

    Anyway if this guy gets dinged, maybe he just needs to replace the Super Soaker with a .12 gauge...

    And shoot the PETA people?

    I approve of this message!

    --
    Faster! Faster! Faster would be better!
  6. Re:PITA Time? by jamstar7 · · Score: 5, Funny

    The People for Eating Tasty Animals? Why would they have a problem with this? Squirrel, the other white meat...

    --
    Understanding the scope of the problem is the first step on the path to true panic.
  7. Dear i-programmer by Anonymous Coward · · Score: 5, Funny

    Your web-
    site has
    a very
    nice
    Layout.
    Reading
    articles this
    way is
    really fun.
    Especially
    enjoyable
    are the
    20px wide
    embedded
    videos.

    Keep
    up
    the
    good
    work!

  8. Before you try to reproduce this... by jafo · · Score: 5, Informative

    I saw his presentation at PyCon a few weeks ago. During Q&A I asked: "My experience with OpenCV has been that it's nearly impossible to use, poor documentation, documentation of a different version of the API, build issues with the libraries. Was I just on the wrong track, or is this a common experience?"

    His answer was that it's true that it's very hard to get OpenCV working.

    Also note that after a while the squirrels stopped being annoyed by the water gun and would just sit there while getting sprayed.

    He did a very nice job of it though! I particularly like the part about using the bushy tail to tell a squirrel from a bird.

    1. Re:Before you try to reproduce this... by Animats · · Score: 3, Informative

      His answer was that it's true that it's very hard to get OpenCV working.

      It used to be quite bad, but the Willow Robotics people have taken it over, and now it's supposedly better.

  9. Re:PITA Time? by colinrichardday · · Score: 5, Funny

    PITA?

    People for the Intelligent Targeting of Animals?

  10. Need some kind of disincentive in the water. by garyebickford · · Score: 4, Interesting

    Add a little ammonia or cat pee, or methyl mercaptan to the water, or maybe some kind of stuff that gets sticky as it dries, to keep the squirrel occupied for a while. Also, since he's mainly interested in keeping them off the feeder, he could mount the gun next to the feeder and fire it remotely, hitting the squirrel at close range with significantly more force and wetness.

    I had a friend long ago who had trouble with dogs chasing his bicycle on his regular route to work. By adding a very small percentage of ammonia into a squirt gun, he found that if he squirted the dog right in the face, the dogs weren't hurt, but were stopped instantly in their tracks, and went off to occupy themselves with rubbing their noses and eyes with their front paws. It only took about three trials to stop any dog from bike and car chasing. Lemon juice might work as well. (Plain water did not work.)

    If I were more devilish I might suggest nitrogen tri-iodide in the water. I'm not sure that it would work unless in high concentrations, but it might be amusing once it dries on the squirrel - and/or on the roof of the feeder. The experimentalist in me wants to know - purely for the knowledge to be gained, of course!

    --
    It's easier to be a result of the past, but more fun to be a cause of the future! http://www.spacefinancegroup.com/
    1. Re:Need some kind of disincentive in the water. by Anonymous Coward · · Score: 3, Insightful

      "Add a little ammonia or cat pee, or methyl mercaptan to the water, or maybe some kind of stuff that gets sticky as it dries, to keep the squirrel occupied for a while."

      Except that it would get all over the feeder and potentially discourage the birds.

    2. Re:Need some kind of disincentive in the water. by belg4mit · · Score: 3, Informative

      To expand upon this, capsaicin is apparently the peppers defense against mammals
      eating the fruit, since they do not spread the seed as optimally for the plant. Birds do
      not sense it, so you could even douse the seed in it as a simpler solution.

      --
      Were that I say, pancakes?
    3. Re:Need some kind of disincentive in the water. by rocket+rancher · · Score: 3, Interesting

      If I were more devilish I might suggest nitrogen tri-iodide in the water. I'm not sure that it would work unless in high concentrations, but it might be amusing once it dries on the squirrel - and/or on the roof of the feeder. The experimentalist in me wants to know - purely for the knowledge to be gained, of course!

      hmmm. have to agree. Nothing like the shocked look on some meathead jock's face when he opened a locker door painted with NI3 in solution. I saw NI3 demonstrated at a science fair when I was in junior high (during the Nixon administration -- get off my lawn.) Stuff is fucking simple to make, and as long as you keep it in solution, it won't blow up on you. It makes a very loud snapping sound when it detonates, along with a cloud of purplish smoke. We'd paint it on locker doors in the gym and tool chests in the auto shop. Any kind of impact after it dried would detonate it. It was invisible if applied while still in solution, and it took less than 5 seconds after detonation for the residual iodine to sublimate and the residual ammonium iodide to dissolve in our always humid air, so it was practically untraceable. Revenge of the nerds, and better living through chemistry, indeed... :)

    4. Re:Need some kind of disincentive in the water. by jc42 · · Score: 3, Informative

      ...capsaicin is apparently the peppers defense against mammals eating the fruit, since they do not spread the seed as optimally for the plant. Birds do not sense it,...

      Actually, a lot of birds do taste capsaicin - and actively like it. We have a blue-crowned conure who likes peppers in general, especially the seeds, but tends to eat only a little of a sweet pepper. But give her a hot pepper of any sort, and she devours it, then goes looking for more. So at least for this species, hot peppers are a real delicacy.

      Conures are native to South America, which is also where hot peppers evolved, so this could explain the good match. Parrots from other continents might not be adapted to hot peppers, and might not taste the capsaicin so well. Thus, our cockatiels (native to Australia) also like peppers of any sort, but don't absolutely love the hot ones like the conure does. They'll usually eat one, and then go on to something else for variety.

      --
      Those who do study history are doomed to stand helplessly by while everyone else repeats it.
  11. Make it say things like... by shippers · · Score: 5, Funny

    "I see you", "there you are", and "no hard feelings" in a soft robotic voice.

  12. Re:PITA Time? by SuricouRaven · · Score: 4, Insightful

    You miss a vital question: Are grey squirrels cute? Hurting non-cute animals will cause little if any public outrage, but even causing a little inconvenience to the cute ones will summon an angry mob. People are stupid that way.

  13. NI instead of AI? by Nkwe · · Score: 5, Funny

    Why not just use the reptilian version of python and skip the AI?

    1. Re:NI instead of AI? by Tablizer · · Score: 3, Funny

      Do white spaces make real pythons go nuts also?

  14. Re:PITA Time? by EdIII · · Score: 4, Funny

    Nooooo...

    PORK is the other white meat. Babies are the other other white meat.

    I want my baby back baby back baby back baby back baby back baby back ribs. *Chili's* Baby back ribs.

  15. Re:PITA Time? by hairyfeet · · Score: 4, Informative

    You monster! What kind of man are you? Don't you care about the environment? Do you have ANY idea how long it takes one of those tofu eating tree huggers to degrade? Use a flame thrower powered by natural gas, its clean AND it gets rid of the bodies! Sheesh, kids these days, always with the guns when killing it with fire has been good enough for thousands of years.

    --
    ACs don't waste your time replying, your posts are never seen by me.
  16. Targeting by Roger+W+Moore · · Score: 4, Funny

    Why not just use the reptilian version of python and skip the AI?

    Probably because its targeting system may not discriminate as well between squirrels, birds and small children.