Open source project made by Jakub Podolak, based on face_recognition module and gTTS. I suggest going through those libraries first, to get familiar with them and install all required stuff.
This is very simple - face_finder.py
uses face_recognition module to detect your face, saves your name to log file, from which another program: sayer.py
can take it, and synthesize a compliment (or any other text) for you!
- Install all needed libraries:
gtts
playsound
configparser
face_recognition
cv2
numpy
- Download all files from this repository
- Add your photo with
.jpg
extension, e.g.myface.jpg
- Specify it in
config_face.ini
file in[FACES]
section like this:
myName = myface.jpg
Thomas = thomas_photo.jpg
- Add your text (currently only one sentence for each person) in
config_sayer.ini
in[SAYINGS]
section like this:
myName = My text that will be synthesized
Thomas = You looking good, Thomas!
- Tinker with additional settings specified in both config files
- Run two programs with
./RUN.sh
command