⭐ Unity + ARKIT ARFace Face Tracking

Compared with the previous image object detection, this face detection will be simpler to implement.

(1) First, we add an AR Face Mananger component to the object in the scene:
(2) The Face Prefab of the above component represents the face model. It is the projection model covering the face. It will move according to the muscle characteristics of your face. The Maximum Face Count parameter represents the maximum number of faces that can be detected simultaneously in the same scene.

(3) To make Face Prefab, we first create an empty object and add components to it: AR Face, ARFaceMeshVisualizer, Mesh Renderer, Mesh Filter. After the addition is completed, the following picture is shown:

(4) After the addition is completed, we can first find a face material, create a material ball and add it to the Mesh Renderer component. Let us first test it with the current face material from the Internet.

(5) Replace the material ball and package it to test the effect.

Guess you like

Origin blog.csdn.net/weixin_53501436/article/details/134685284