本文介绍了ARCore –对象在面部增强中无法正确显示深度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将一个物体放在脸上.但是不了解如何设置对象的深度.

I tried to place an object on face. But does not understand how to set depth in object.

就像我在脸上添加3D对象(如斑点帧)时一样.

Like when I add 3d object like spects frames on face.

它未显示在正确的深度.

推荐答案

使用增强的人脸功能,值得注意的是,如果检测到任何人脸,ARCore首先会放置一个人脸锚(必须位于鼻子后面,或更确切地说,应该位于头骨内部),其次是ARCore放置了一个典型的蒙版,它的枢轴点与锚点位于同一位置.

When you use Augmented Faces feature, it's worth to note that if any face is detected, ARCore at first puts a Face Anchor (which must be located behind a nose or, more precise to say, inside a skull), and secondly ARCore puts a canonical mask – its pivot point resides on the same place as anchor does.

因此,如果您想将眼镜放置在适当的深度,请以与在标准蒙版上设置的方式相同的方式设置3D对象的枢轴点.换句话说–嫁给这些关键点.

Hence, if you wanna place your glasses at the appropriate depth – set a pivot point of your 3D object the same way it was set on a canonical mask. In other words – marry these pivot points.

这篇关于ARCore –对象在面部增强中无法正确显示深度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 05:39