Here’s a fun project that will distract your cat while you’re working on other fun projects! Here’s more from Grant Desselle via hackster.io:
A servo connected to rack and pinion gears makes an object extend and retract from an enclosure, emulating the motion of a mouse leaving and retreating from its hole…. When the motion detector senses motion, the camera takes a picture and then the app uses OpenCvSharp to check if it can recognize a cat’s face in the photo.
If it does recognize a cat’s face, it takes another picture and a short video while it runs a predefined routine of movements. If a cat’s face is not recognized in the photo taken after movement was detected, the toy returns to checking for movement.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!
No comments:
Post a Comment