The project consists of a raspberry pi, a linear 12V actuator, 2 relays and two nMOSFETs The raspberry pi commands the transistors, which control the actuator and power the relays.
It uses two trigger SPDT relays in a reverse polarity configuration to reverse the power of the actuator to retract it.
Other than that it uses the face recognition code from this tutorial.