Use
After loading up the CircuitPython code, power up your Fruit Jam via USB-C (and make sure the on-off switch is On) and plug in the Logitech C270 webcam. Then, connect the DVI port to an HDMI to USB capture card or HDMI monitor with an HDMI cable. You'll see the camera feed displayed.
As a face moves into the frame, a green box will appear around the face. It's important to note that this is a frontal face detection model, so if a face is in profile, it won't trigger the detector.
About the Model
The model is a pre-compiled local binary pattern (LBP) frontal face detection model from OpenCV. It runs locally on the Fruit Jam, so no data is sent to outside services. The algorithm uses the Viola-Jones object detection framework, which essentially scans each frame as a grid for classifiers that trigger whether or not a face is detected. These models are very fast and efficient, making them ideal for running on smaller processors, like the RP2350. The trade off is that they can be sensitive to noise and not as accurate, but you still get face detection on a microcontroller!
Page last edited October 15, 2026