Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
Dismiss Notice
Join us now in the Performance Profiling Dev Blitz Day 2023 - Q&A forum where you can connect with our teams behind the Memory and CPU Profilers and the Frame Debugger.

Question ARFoundation - Multiple Face Tracking?

Discussion in 'AR' started by Alberto_N, Mar 4, 2021.

  1. Alberto_N

    Alberto_N

    Joined:
    Mar 2, 2021
    Posts:
    5
    Hello,

    I've made a project for face tracking utilizing ARF's Face Tracking, but I can't seem to get more than one face being rendered at the same time. The moment a face is captured, the person will keep it, and no other person in the camera's view will be registered until the one with the face mask gets out of the camera vision, so only one can have a face mask per time...

    I've tried setting the maximum face count to 3 (by the ARFaceManager's parameter at inspector and also by code), but the supported face counts is always 1 (I tried it on 2 different Android devices). I have not found anywhere that tells how the count for supported faces actually work with ARF. Is there a way to increase that count?

    Unity version: 2019.4.15f1 / 2020.1.17f1 (I tried with both)
    ARFoundation version: 4.1.5
    Packages used:
    ARCore XR Plugin 4.1.5
    ARKit Face Tracking 4.1.5
    ARKit XR Plugin 4.1.5
     
  2. KirillKuzyk

    KirillKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    959
    The supported face count is provider-specific.
    ARKit supports multiple faces, but only on top-end CPUs (if I remember it correctly, it was iPhone XS where this feature was introduced first).
    As of today, ARCore doesn't support multiple face tracking.
     
    Alberto_N likes this.
  3. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,751
    Following up on what @KirillKuzyk said, after connecting with the team I wanted to add that supported face count provides the number of faces support on that device in that configuration.

    Android devices only support 1 face.
     
    hatamoto77, KirillKuzyk and Alberto_N like this.