iOS11视觉框架映射所有面孔地标 [英] iOS11 vision framework mapping all face landmarks

查看:76
本文介绍了iOS11视觉框架映射所有面孔地标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用视觉框架,并通过以下代码获取所有标志性点:

I am playing with vision framework and getting all landmark points with this code:

if let allFaceLandmarks = landmarks.allPoints {
    print(allFaceLandmarks)
}

但是找不到这些点的映射.例如右眼的索引号.

But cant find mapping for these points. For example index numbers for right eye.

正在寻找与相同的内容,但要使用Vision框架. /p>

Looking for something the same as this, but for Vision framework instead.

推荐答案

我不知道苹果为什么不提供这种图形.似乎给文档中的人提供超级有用的信息.无论如何,我能够读取观察值的allPoints属性并用数字将其绘制出来.我不确定鼻子和鼻尖之间的区别.您可能可以将它们抽出并看到...

I have no clue why apple doesn't provide a graphic of this. It seems like it would be super helpful information to give people in the docs. At any rate, I was able to read the allPoints property of the observation and draw them out with numbers. I'm not really sure about the difference between nose and nose crest. You can probably draw them out and see...

  • 右眉= 0-3
  • 左眉= 4-7
  • 右眼轮廓= 8-15
  • 左眼轮廓= 16-23
  • 外唇= 24-33
  • 内唇= 34-39
  • 面部轮廓= 40-50
  • 鼻子和鼻子的纹章= 51-59
  • 梅丹线= 60-62
  • 右学生= 63
  • 左学生= 64
  • Right eyebrow = 0 - 3
  • Left eyebrow = 4 - 7
  • Right eye contour = 8 - 15
  • Left eye contour = 16 - 23
  • Outer lips = 24 - 33
  • Inner lips = 34 - 39
  • Face Contour = 40 - 50
  • Nose and Nose Crest = 51 - 59
  • Meidan Line = 60 - 62
  • Right Pupil = 63
  • Left Pupil = 64

这是一张希望能对您有所帮助的照片!

Here's a pic that hopefully helps!

这篇关于iOS11视觉框架映射所有面孔地标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆