Skip to content

A Raspberry Pi powered e-ink display that detects faces and snaps a photo.

Notifications You must be signed in to change notification settings

AlanCunningham/waveshare-eink-face-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Waveshare E-Ink Face Detector

A Raspberry Pi powered e-ink display that detects faces and displays them as a photo on Waveshare's 7.5 inch e-ink display.

Hardware requirements

Installation

# Clone the repository
git clone git@github.com:AlanCunningham/waveshare-eink-face-detector.git

# Create a python virtual environment
python3 -m venv venv

# Activate the virtual environment
source venv/bin/activate

# Install the python dependencies using the requirements.txt file provided
pip install -r requirements.txt

Running the script

If you're using the Raspberry Pi camera or a USB camera:

(venv)$ python main.py

If you're using a networked camera:

(venv)$ python main.py --video url_to_video_feed

The script will look for faces and take a photo if one is detected for more than 2 seconds and display it on the screen. It'll then go to sleep for a given amount of time to prevent it updating while the face is still there.