hao-qiang / find-couple_face_recognition

Find couple in the photo and make up

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Find couple

Find couple in the photo and make the girl up.

Requirements

  • python 3.6
  • opencv 3.4.1
  • dilb 19.15
  • face_recognition 1.2.2

Getting Started

1. Preparing your data

Two facial images of couple should be put into folder ./data/couple , boy's image need to be named as name (like 'Tony.jpg') and girl's image should be named as name_ (like 'Pepper_.jpg'), and other people's facial images named as name (like 'Thor.jpg', 'Steve.jpg') should be put into folder ./data/single . The face_recognition library will extract facial features from these pictures.

2. Running

If you want to use PC camera to do real-time face recognition, run

python find_couple_camera.py

If you want to recognize faces from one photo (like input.jpg ), you should save the photo at script path and run

python find_couple_image.py input.jpg

Happy Chinese Valentine's Day!

About

Find couple in the photo and make up

License:MIT License


Languages

Language:Python 100.0%