예제 #1
0
def young(image_name, annotations_df, landmarks_df, column):
    points = []
    if annotations_df.loc[image_name, column] == 1:
        points.append(attparsenet_regions.chin(image_name, landmarks_df))

        points.append(attparsenet_regions.left_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.right_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.upper_lip(image_name, landmarks_df))

        points.append(attparsenet_regions.neck(image_name, landmarks_df))

        points.append(attparsenet_regions.mouth(image_name, landmarks_df))

        points.append(attparsenet_regions.left_eye(image_name, landmarks_df))

        points.append(attparsenet_regions.right_eye(image_name, landmarks_df))

        points.append(attparsenet_regions.nose(image_name, landmarks_df))

        points.append(attparsenet_regions.left_eye_brow(image_name, landmarks_df))

        points.append(attparsenet_regions.right_eye_brow(image_name, landmarks_df))

        points.append(attparsenet_regions.top_of_head(image_name, landmarks_df))

        points.append(attparsenet_regions.left_ear(image_name, landmarks_df))

        points.append(attparsenet_regions.right_ear(image_name, landmarks_df))

    return points
예제 #2
0
def attractive(image_name, annotations_df, landmarks_df, column):
    points = []
    if annotations_df.loc[image_name, column] == 1:
        points.append(attparsenet_regions.chin(image_name, landmarks_df))

        points.append(attparsenet_regions.left_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.right_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.upper_lip(image_name, landmarks_df))

        points.append(attparsenet_regions.neck(image_name, landmarks_df))

        points.append(attparsenet_regions.mouth(image_name, landmarks_df))

        points.append(attparsenet_regions.left_eye(image_name, landmarks_df))

        points.append(attparsenet_regions.right_eye(image_name, landmarks_df))

        points.append(attparsenet_regions.nose(image_name, landmarks_df))

        points.append(attparsenet_regions.left_eye_brow(image_name, landmarks_df))

        points.append(attparsenet_regions.right_eye_brow(image_name, landmarks_df))

        points.append(attparsenet_regions.top_of_head(image_name, landmarks_df))

        points.append(attparsenet_regions.left_ear(image_name, landmarks_df))

        points.append(attparsenet_regions.right_ear(image_name, landmarks_df))

    # cv2.imwrite("../region_masks/" + "Attractive_mask_" + image_name, annotations_df)
    return points
예제 #3
0
def bags_under_eyes(image_name, annotations_df, landmarks_df, column):
    points = []
    if annotations_df.loc[image_name, column] == 1:
        points.append(attparsenet_regions.left_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.right_cheek(image_name, landmarks_df))

    # cv2.imwrite("../region_masks/" + "Bags_Under_Eyes_mask_" + image_name, annotations_df)
    return points
예제 #4
0
def side_burns(image_name, annotations_df, landmarks_df, column):
    points = []
    if annotations_df.loc[image_name, column] == 1:
        points.append(attparsenet_regions.left_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.right_cheek(image_name, landmarks_df))

    # cv2.imwrite("../region_masks/" + "Side_Burns_mask_" + image_name, annotations_df)
    return points
예제 #5
0
def oval_face(image_name, annotations_df, landmarks_df, column):
    points = []
    if annotations_df.loc[image_name, column] == 1:
        points.append(attparsenet_regions.chin(image_name, landmarks_df))

        points.append(attparsenet_regions.left_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.right_cheek(image_name, landmarks_df))

    # cv2.imwrite("../region_masks/" + "Oval_Face_mask_" + image_name, annotations_df)
    return points
예제 #6
0
def five_oclock_shadow(image_name, annotations_df, landmarks_df, column):
    points = []
    if annotations_df.loc[image_name, column] == 1:
        points.append(attparsenet_regions.chin(image_name, landmarks_df))

        points.append(attparsenet_regions.left_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.right_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.upper_lip(image_name, landmarks_df))

        points.append(attparsenet_regions.neck(image_name, landmarks_df))

    # cv2.imwrite("../region_masks/" + "5_o_Clock_Shadow_mask_" + image_name, annotations_df)
    return points
예제 #7
0
def pale_skin(image_name, annotations_df, landmarks_df, column):
    points = []
    if annotations_df.loc[image_name, column] == 1:
        points.append(attparsenet_regions.chin(image_name, landmarks_df))

        points.append(attparsenet_regions.left_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.right_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.upper_lip(image_name, landmarks_df))

        points.append(attparsenet_regions.neck(image_name, landmarks_df))

        points.append(attparsenet_regions.mouth(image_name, landmarks_df))

        points.append(attparsenet_regions.nose(image_name, landmarks_df))

    # cv2.imwrite("../region_masks/" + "Pale_Skin_mask_" + image_name, annotations_df)
    return points
예제 #8
0
def heavy_makeup(image_name, annotations_df, landmarks_df, column):
    points = []
    if annotations_df.loc[image_name, column] == 1:
        points.append(attparsenet_regions.left_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.right_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.mouth(image_name, landmarks_df))

        points.append(attparsenet_regions.left_eye(image_name, landmarks_df))

        points.append(attparsenet_regions.right_eye(image_name, landmarks_df))

        points.append(attparsenet_regions.left_eye_brow(image_name, landmarks_df))

        points.append(attparsenet_regions.right_eye_brow(image_name, landmarks_df))

    # cv2.imwrite("../region_masks/" + "Heavy_Makeup_mask_" + image_name, annotations_df)
    return points
예제 #9
0
def eyeglasses(image_name, annotations_df, landmarks_df, column):
    points = []
    if annotations_df.loc[image_name, column] == 1:
        points.append(attparsenet_regions.left_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.right_cheek(image_name, landmarks_df))

        points.append(attparsenet_regions.left_eye(image_name, landmarks_df))

        points.append(attparsenet_regions.right_eye(image_name, landmarks_df))

        points.append(attparsenet_regions.left_eye_brow(image_name, landmarks_df))

        points.append(attparsenet_regions.right_eye_brow(image_name, landmarks_df))

        points.append(attparsenet_regions.left_ear(image_name, landmarks_df))

        points.append(attparsenet_regions.right_ear(image_name, landmarks_df))

    # cv2.imwrite("../region_masks/" + "Eyeglasses_mask_" + image_name, annotations_df)
    return points