ARCore – 对象在面部增强中未以正确的深度显示 [英] ARCore – Object does not show in correct depth in Face Augmentation

查看:21
本文介绍了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.

它不显示 正确的深度.

推荐答案

当你使用 Augmented Faces 功能,值得注意的是,如果检测到任何人脸,ARCore 首先会放置一个 Face Anchor(必须位于鼻子后面,或者更准确地说,位于头骨内部),其次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 – 对象在面部增强中未以正确的深度显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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