Name Last Update
.ipynb_checkpoints Loading commit data...
__pycache__ Loading commit data...
res Loading commit data...
README.md Loading commit data...
Untitled.ipynb Loading commit data...
color_conversion.py Loading commit data...
color_extraction.py Loading commit data...
color_visualization.py Loading commit data...
detect_face.py Loading commit data...
dominant_colors.py Loading commit data...
get_std_from_xls.py Loading commit data...
getjson.py Loading commit data...
jsontest.py Loading commit data...
main.py Loading commit data...
plot_std.py Loading commit data...
shape_predictor_68_face_landmarks.dat Loading commit data...
temp3.py Loading commit data...
temp4.py Loading commit data...
temp5.py Loading commit data...
tone_analysis.py Loading commit data...

Show me the color

This is Personal color diagnosis system.

Personal Color Diagnosis system
Click this image to see the Demo video!

1. Face detection

detect_face.py with shape_predictor_68_face_landmarks.dat has DetectFace class, and it provides face detection function, the exact face parts, and the coordinates of them. We selected cheeks, eyes, eyebrows(instead of hair) for personal color analysis.

2. Extract the Dominant Color

dominant_colors.py has DominantColors class, and it provides the dominant colors by k-means algorithm, with RGB values.
I modified the source code from (https://buzzrobot.com/dominant-colors-in-an-image-using-k-means-clustering-3c7af4622036).

3. Personal Color Diagnosis

The RGB values from step 2 is converted to Lab and HSV color space. The b value from Lab is the factor determining warm/cool and the S value from HSV is the factor determining spring/fall or summer/winter. Our team got the criteria values which classifies the personal color results by analyzing color values dataset from several images.
tone_analysis.py and temp5.py is the source code for personal color classifying and the usage.

4. Virtual Makeup Simulator

We classified several lipstics as 4 personal colors by their colors and put their name, color code and class into the Database. After detecting the lip outlines, the system connects the lips and puts the chosen color from the DB.

5. Web

Django is used for web framework.