Easily add face detection to your project with the Person Sensor module
It's now much easier to AI features to your project thanks to better tools, but as we’ve experienced when trying out Edge Impulse machine learning platform on the XIAO BLE Sense board, it still requires some effort and the learning curve may be higher than some expect.
But for common tasks like face detection, there's no reason for the solution to be hard-to-use or expensive, and Pete Warden (Useful Sensors) has designed the $10 Person Sensor fitted with a camera module pre-programmed with algorithms that detect nearby faces and reports the results over an I2C interface.
Person Sensor specifications:
You’ll need to connect the module to a host microcontroller that with either poll for data or use the interrupt pin, and get face detection coordinates out of a 256×256 pixels area, as well as confidence in percent, and whether the face is facing the camera or not. No image data is sent to the host and as such it offers improved privacy. Note the Himax microcontroller is preprogrammed and you can't update the firmware or get updates.
A sample program (polling mode) for the Raspberry Pi Pico would look like this:
The module will also return identity information, or in other words, try to detect up to 8 different users, but this is not shown in the example above, and it's not clear how well that works. You’ll find documentation and code samples in different languages including Arduino, CircuitPython, and Python on GitHub.
The video below shows a face following fan demo based on the Person Sensor module.
The Person Sensor is listed on Sparkfun for $9.95, but is out of stock and on backorder at the time of writing.
Via Hackster.io
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.
Support CNX Software! Donate via cryptocurrencies or become a Patron on Patreon
Related posts:
Person Sensor