Spaces:
Runtime error
Runtime error
File size: 961 Bytes
6f90f9d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
from ratios import Ratios
points = {
Ratios.UNDER_EYES: (23, 253),
Ratios.INTEROCULAR: (243, 463),
Ratios.NOSE_WIDTH: (48, 278),
Ratios.MOUTH_WIDTH: (61, 293),
Ratios.UPPER_LIP_TO_JAW: (0, 152),
Ratios.LIPS_HEIGHT: (0, 17),
Ratios.NOSE_TO_MOUTH_HEIGHT: (2, 0),
Ratios.UPPER_LIP_HEIGHT: (0, 13),
Ratios.FACE_TOP_TO_EYEBROWS: (10, 9),
Ratios.EYEBROWS_TO_NOSE: (9, 2),
Ratios.NOSE_TO_JAW: (2, 152),
Ratios.FACE_HEIGHT: (10, 152),
Ratios.FACE_WIDTH: (227, 447),
Ratios.LEFT_LOWER_EYEBROW_LENGTH: (46, 55),
Ratios.RIGHT_LOWER_EYEBROW_LENGTH: (285, 276),
Ratios.LEFT_LOWER_LIP_LENGTH: (61, 17),
Ratios.RIGHT_LOWER_LIP_LENGTH: (17, 291),
Ratios.LEFT_UPPER_EYEBROW_LENGTH: (105, 9),
Ratios.RIGHT_UPPER_EYEBROW_LENGTH: (334, 9),
Ratios.LEFT_UPPER_LIP_LENGTH: (61, 0),
Ratios.RIGHT_UPPER_LIP_LENGTH: (17, 0),
Ratios.LEFT_NOSE_WIDTH: (48, 2),
Ratios.RIGHT_NOSE_WIDTH: (278, 2)
}
|