Skip to content

lincerely/Face-Reading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👲 面相分析 Face reading ( facial feature classification )

A physiognomy application which analysis people facial feature to evaluates a person's characteristic, and then do the fortune-telling.

Demo

*Only tested in python3

Depoly

Install dependcy

pip3 install --user -r requirement.txt

Gather data

To build the dataset for training, run build_db.py

Data are collect from Google Image search directly accordling to the facial description mentioned in data/analysis.json

python build_db.py

Or you may download the builded dataset from Google Drive, and extract it into this folder.

Train

To train your own classifier, run train.py

If you updated the face database, just delete data/train_data.pkl and let it generate a new one for you.

# if need to regenerate the dataset, run below line
# rm data/train_data.pkl
python train.py

Test on image

To run test on different source of image, run test.py

python test.py --help

usage: test.py [-h] [-i IMAGE] [-u URL]

optional arguments:
  -h, --help            show this help message and exit
  -i IMAGE, --image IMAGE
                        input image
  -u URL, --url URL     input image url

About

Evaluate your fate with Computer Vision

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages