Use your webcam to control a cartoon version of your face. Open your mouth to hurl cartoon objects in the direction you are facing. Do it alone, or enjoy hours of fun with the whole family.
I built this project as a learning excercise to understand how to work with video and images containing faces.
Key ingredients include:
- face_recognition: an excellent (which uses Dlib under the hood), OpenCV, and Google's Quickdraw dataset to produce these results. I also relied on lots of quality advice across the internet (see References).
This works great on Ubuntu, but not on MacOS because Docker for Mac does not pass through USB devices to containers (boo!). It might work on Windows but has not been tested there.
git clone [email protected]:goberoi/face_experiments.git
docker build goberoi/face_experiments .
docker -ti run goberoi/face_experiments
- This project was inspired by this video on Instagram.
- The face_recognition library is awesome. Start with this demo code.
- On how to increase FPS by putting camera reading IO in another thread.
- I 'borrowed' head pose estimation code from here.