如何将106个地标点转换为68个地标点



dlib中使用了68个标志点https://towardsdatascience.com/facial-mapping-landmarks-with-dlib-python-160abcf7d672JD挑战中使用的106个标志点的子集https://facial-landmarks-localization-challenge.github.io/?如果它是一个子集,那么转换的索引是什么?

landmark106to68=[1,10,12,14,16,3,5,7,0,23,21,19,32,30,28,26,17,    # 脸颊17点
43,48,49,51,50,      # 左眉毛5点
102,103,104,105,101, # 右眉毛5点
72,73,74,86,78,79,80,85,84, # 鼻子9点
35,41,42,39,37,36,   # 左眼睛6点
89,95,96,93,91,90,   # 右眼睛6点
52,64,63,71,67,68,61,58,59,53,56,55,65,66,62,70,69,57,60,54 # 嘴巴20点
]
...

pt68 = []
if len(pt106) != 106:
continue
for i in range(68):
index = landmark106to68[i]
pt68.append(pt106[index])

相关内容

  • 没有找到相关文章

最新更新