Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ARCore – Object does not show in correct depth in Face Augmentation

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

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

It does not show in correct depth.

like image 943
Sonam Gupta Avatar asked Dec 01 '25 03:12

Sonam Gupta


1 Answers

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.

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.

like image 148
Andy Jazz Avatar answered Dec 02 '25 15:12

Andy Jazz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!