facepunch: the facial recognition punch clock

Get on board with facial recognition and clock your screen time with facepunch, the facial recognition punch clock from dekuNukem.

dekuNukem facepunch raspberry pi facial recognition

image c/o dekuNukem

How it works

dekuNukem uses a Raspberry Pi 3, the Raspberry Pi camera module, and an OLED screen for the build. You don’t strictly need to include the OLED board, but it definitely adds to the overall effect, letting you view your daily and weekly screen time at a glance without having to access your Raspberry Pi for data.

As dekuNukem explains in the GitHub repo for the build, they used a perf board to mount the screen and attached it to the Raspberry Pi. This is a nice, simple means of pulling the whole project together without loose wires or the need for a modified case.

dekuNukem facepunch raspberry pi facial recognition

image c/o dekuNukem

This face_recognition library lets the Pi + camera register your face. You’ll also need a well lit 400×400 photograph of yourself to act as a reference for the library. From there, a few commands should get you started.

Uses for facial recognition

You could simply use facepunch for its intended purpose, but here at Pi Towers we’ve been discussing further uses for the build. We’re all guilty of sitting for too long at our desks, so why not incorporate a “get up and walk around” notification? How about a flashing LED that tells you to “drink some water”? You could even go a little deeper (though possibly a little Big Brother) and set up an “I’m back at my desk” notification on Slack, to let your colleagues know you’re available.

You could also take this foray into facial recognition and incorporate it into home automation projects: a user-identifying Magic Mirror, perhaps, or a doorbell that recognises friends and family.

What would you do with facial recognition on a Raspberry Pi?


William Livingstone avatar

Maybe include that as a layer of security for Raspberry Pi Servers! Not only do they need to have physical access to the servers, but they also need to have your face too! Kind of feels like a good security lock! Does anyone know if a photograph could trick this software?

Rikard Johnels avatar

Most probable.
A good hi-res photo would most likely trick the software.

AndrewS avatar

Haha, when I saw this blog post’s title, I assumed it was going to be a project like https://www.raspberrypi.org/blog/michael-reeves-subscriber-robot/ where somebody had rigged up a Raspberry Pi with a robot-controlled boxing glove to only punch particular people in the face ;-)

Bob avatar

I would use facial recognition for security purposes only! I’m trying to think of other ways to use it but not many ways are coming to me facial recognize is extremely neat technology, although I can’t think of that many ways to use it.

HappySadFace avatar

To sort through Facebook profile pictures to find someone you only have a picture of, hmmm..or in conjunction with that after using “some kind” of malware to gain control of certain computers camera modules using a “certain ISP”.
I wonder how susceptible Rpi hardware is to ROP attacks? Anyone know?

Andrey avatar

Time lib?

Randy Noseworthy avatar

Use it to measure how long kids (or adults) are brushing their teeth?

Carl avatar

How is the speed?

Comments are closed