Open jasperDD opened 5 years ago
I'm not 100% sure what you are asking, but I think you are looking for this example: https://github.com/ageitgey/face_recognition/blob/master/examples/find_facial_features_in_picture.py
That code should do something similar to the example you posted.
I try use tutorial from kaggle site https://www.kaggle.com/c/facial-keypoints-detection#getting-started-with-r
They perform face recogntion using the R language, but the analysis is not important. It doesn't matter!!! It is important that they work with transformed parameters(this data ready for analysis)! I'm interested in the process of preparing (convert)data from the image to the data frame
Here, they provided two datasets(test and train) These datasets have decomposed on geometric parameters or pictures like here
data.frame': 7049 obs. of 30 variables: $ left_eye_center_x : num 66 64.3 65.1 65.2 66.7 ... $ left_eye_center_y : num 39 35 34.9 37.3 39.6 ... $ right_eye_center_x : num 30.2 29.9 30.9 32 32.2 ... $ right_eye_center_y : num 36.4 33.4 34.9 37.3 38 ... $ left_eye_inner_corner_x : num 59.6 58.9 59.4 60 58.6 ... $ left_eye_inner_corner_y : num 39.6 35.3 36.3 39.1 39.6 ... $ left_eye_outer_corner_x : num 73.1 70.7 71 72.3 72.5 ... $ left_eye_outer_corner_y : num 40 36.2 36.3 38.4 39.9 ... $ right_eye_inner_corner_x : num 36.4 36 37.7 37.6 37 ... $ right_eye_inner_corner_y : num 37.4 34.4 36.3 38.8 39.1 ... $ right_eye_outer_corner_x : num 23.5 24.5 25 25.3 22.5 ... $ right_eye_outer_corner_y : num 37.4 33.1 36.6 38 38.3 ... $ left_eyebrow_inner_end_x : num 57 54 55.7 56.4 57.2 ... $ left_eyebrow_inner_end_y : num 29 28.3 27.6 30.9 30.7 ... $ left_eyebrow_outer_end_x : num 80.2 78.6 78.9 77.9 77.8 ... $ left_eyebrow_outer_end_y : num 32.2 30.4 32.7 31.7 31.7 ... $ right_eyebrow_inner_end_x: num 40.2 42.7 42.2 41.7 38 ... $ right_eyebrow_inner_end_y: num 29 26.1 28.1 31 30.9 ... $ right_eyebrow_outer_end_x: num 16.4 16.9 16.8 20.5 15.9 ... $ right_eyebrow_outer_end_y: num 29.6 27.1 32.1 29.9 30.7 ... $ nose_tip_x : num 44.4 48.2 47.6 51.9 43.3 ... $ nose_tip_y : num 57.1 55.7 53.5 54.2 64.9 ... $ mouth_left_corner_x : num 61.2 56.4 60.8 65.6 60.7 ... $ mouth_left_corner_y : num 80 76.4 73 72.7 77.5 ... $ mouth_right_corner_x : num 28.6 35.1 33.7 37.2 31.2 ... $ mouth_right_corner_y : num 77.4 76 72.7 74.2 77 ... $ mouth_center_top_lip_x : num 43.3 46.7 47.3 50.3 45 ... $ mouth_center_top_lip_y : num 72.9 70.3 70.2 70.1 73.7 ... $ mouth_center_bottom_lip_x: num 43.1 45.5 47.3 51.6 44.2 ... $ mouth_center_bottom_lip_y: num 84.5 85.5 78.7 78.3 86.9 ...
so as you can see for each picture 30 variables
suppose i have any pictures here "C:\Users\Admin\Downloads\mypicture" How can i decompose it on these variables using python
Thank you