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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105 | SWAPPAIR_LIPS = np.array([
# Upper line in outline.
[37, 267], [39, 269], [40, 270], [185, 409],
# Both side in outline.
[61, 291],
# Lower line in outline.
[84, 314], [181, 405], [91, 321], [146, 375],
# Upper line in inline.
[82, 312], [81, 311], [80, 310], [191, 415],
# Both side in inline.
[78, 308],
# Lower line in inline.
[87, 317], [178, 402], [88, 318], [95, 324]])
SWAPPAIR_NOSE = np.array([
[45, 275], [220, 440], [115, 344], [48, 278], [64, 294],
[98, 327], [97, 326]])
SWAPPAIR_EYEBROW = np.array([
# Upper line.
[107, 336], [66, 296], [105, 334], [63, 293], [70, 300],
# Lower line.
[55, 285], [65, 295], [52, 282], [53, 283], [46, 276]])
SWAPPAIR_EYE = np.array([
# Upper line.
[173, 398], [157, 384], [158, 385], [159, 386], [160, 387],
[161, 388], [246, 466],
# Both corner.
[133, 362], [33, 263],
# Lower line.
[155, 382], [154, 381], [153, 380], [145, 374], [144, 373],
[163, 390], [7, 249]])
SWAPPAIR_OVAL = np.array([
# From upper to lower.
[109, 338], [67, 297], [103, 332], [54, 284], [21, 251],
[162, 389], [127, 356], [234, 454], [93, 323], [132, 361],
[58, 288], [172, 397], [136, 365], [150, 379], [149, 378],
[176, 400], [148, 377]])
SWAPPAIR_OTHERS = np.array([
# 2nd line.
[108, 337], [69, 299], [104, 333], [68, 298], [71, 301],
[139, 368], [34, 264], [227, 447], [137, 366], [177, 401],
[215, 435], [138, 367], [135, 364], [169, 394], [170, 395],
[140, 369], [171, 396],
# 3rd line excepting eyebrow.
[156, 383], [143, 372], [116, 345], [123, 352], [147, 376],
[213, 433], [192, 416], [214, 434], [210, 430], [211, 431],
[32, 262], [208, 428],
# 4th line excepting eybrow (temple -> cheek -> sulcus mentolabialis).
[124, 353], [35, 265], [111, 340], [117, 346], [50, 280],
[187, 411], [207, 427], [216, 436], [212, 432], [202, 422],
[204, 424], [194, 418], [201, 421],
# 5th line (radix nasi -> regio orbitalis -> temple -> cheek -> sulcus mentolabialis).
[193, 417], [189, 413], [221, 441], [222, 442], [223, 444],
[224, 445], [225, 342], [113, 342], [226, 446], [31, 261],
[228, 448], [118, 347], [101, 330], [205, 425], [206, 426],
[92, 322], [186, 410], [57, 287], [43, 273], [106, 335],
[182, 406], [83, 313],
# 6th line (radix nasi -> regio orbitalis -> temple -> cheek -> philtrum).
[190, 414], [56, 286], [28, 258], [27, 257], [29, 259],
[30, 460], [247, 467], [130, 359], [25, 255], [110, 339],
[229, 449], [119, 348], [100, 329], [36, 266], [203, 423],
[165, 391], [167, 393],
# 7th line (inner lines of cheeks and nose).
[122, 351], [245, 465], [244, 464], [243, 463], [112, 341],
[26, 256], [22, 252], [23, 253], [24, 254], [230, 450],
[120, 349], [47, 277], [126, 355], [142, 371], [129, 358],
[98, 327], [97, 326],
# 8th line (inner lines of cheeks).
[233, 453], [232, 452], [231, 451], [121, 350], [128, 357],
[114, 343], [188, 412],
# 9th line (inner lines of nose).
[196, 419], [174, 399], [217, 437], [198, 420], [209, 429],
[49, 279], [102, 331], [64, 294], [240, 460], [99, 328],
# 10th line (inner lines of nose).
[3, 248], [236, 456], [198, 420], [131, 360], [48, 278],
[219, 439], [235, 455], [75, 305], [60, 290],
# 11th line (inner lines of nose).
[51, 281], [134, 363],
# 12th line (inner lines of nose).
[45, 275], [220, 440], [115, 344],
# 13th line (inner lines of nose).
[44, 274], [237, 457], [218, 438], [160, 392], [59, 289],
# 14th line (inner lines of nose).
[239, 459], [79, 309],
# 15th line (inner lines of nose).
[125, 354], [241, 461], [238, 458], [20, 250], [242, 462],
[141, 370],
# 16th line (inner lines of lips).
[72, 302], [73, 303], [74, 304], [184, 408], [76, 306],
[77, 307], [90, 320], [180, 404], [85, 315],
# 17 th line (inner lines of lips).
[38, 268], [41, 271], [42, 272], [183, 407], [62, 292],
[96, 325], [89, 319], [179, 403], [86, 316]])
SWAPPAIR_ALL = np.concatenate([
SWAPPAIR_LIPS,
SWAPPAIR_NOSE,
SWAPPAIR_EYEBROW,
SWAPPAIR_EYE,
SWAPPAIR_OVAL,
SWAPPAIR_OTHERS])
|