Search Unity

Question face tracking using rear camera is not available?

Discussion in 'AR' started by pigeon99, Mar 7, 2021.

  1. pigeon99

    pigeon99

    Joined:
    Nov 27, 2016
    Posts:
    3
    i'm making a AR camera app(android and ios).

    when i using AR foundation with rear camera....face tracking not working...

    face tracking with rear camera is not available????
     
    makaka-org likes this.
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,822
    After connecting with the team, looks like this is expected behavior.

    Currently, Android does not support face tracking with rear camera at all.

    Currently, iOS does support face tracking while using the rear camera; however, the face is tracked by using the user-facing camera, not the rear-facing camera.
     
  3. comescusa1234

    comescusa1234

    Joined:
    Jul 2, 2022
    Posts:
    1
    Hi! Does now Face Tracking work using rear camera on Android??
     
    Last edited: Feb 5, 2023
  4. davidmo_unity

    davidmo_unity

    Unity Technologies

    Joined:
    Jun 18, 2019
    Posts:
    99
    Currently ARCore does not support face-tracking via the world facing camera.
     
  5. Mumford-and-Dragons

    Mumford-and-Dragons

    Joined:
    Jan 5, 2016
    Posts:
    129
    Sorry to reply to an old thread, but is there a reason for this?

    I had ARFoundation facetracking on Android (front camera) working about 2 years ago.
    I've built the exact same scene following same tutorials and the .apk just crashes upon opening.

    I know ARCore does support face tracking on android/world/front facing camera..!
     
  6. SF_FrankvHoof

    SF_FrankvHoof

    Joined:
    Apr 1, 2022
    Posts:
    780
    Google (Android) doesn't support it.
    If you want to know why, ask them. It's probably because the Hardware for those camera(s) usually isn't made for it.
     
  7. Mumford-and-Dragons

    Mumford-and-Dragons

    Joined:
    Jan 5, 2016
    Posts:
    129
    But I had this working 2 years ago as stated.
    Are you saying since 2 years has passed, ARFoundation is not supported on Android anymore?
     
  8. SF_FrankvHoof

    SF_FrankvHoof

    Joined:
    Apr 1, 2022
    Posts:
    780
    On the front camera, yes. That's supported. It's not supported on the rear camera. Never has been either.
     
  9. Mumford-and-Dragons

    Mumford-and-Dragons

    Joined:
    Jan 5, 2016
    Posts:
    129
    Ah soz, I also ment front camera.
    The .apk just crashes.
    I'll make another thread as this I presume is only asking for rear. soz!
     
  10. moyado

    moyado

    Joined:
    Jan 2, 2013
    Posts:
    7
    I cant believe that after all this years it doesnt work for the near camera. is there any other alternative to it?
     
  11. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,062
    makaka-org likes this.
  12. antnasce

    antnasce

    Joined:
    Apr 27, 2019
    Posts:
    12
    Rear facing camera face tracking (a la the Snapchat app) would be great.. Are there any Unity solutions for this?
     
    makaka-org likes this.
  13. davidmo_unity

    davidmo_unity

    Unity Technologies

    Joined:
    Jun 18, 2019
    Posts:
    99
    Built-in solutions: No, we don't implement our own SLAM algorithm or object detection. ARFoundation is there to provide a uniform API surface for users to use a variety of different AR data providing platforms with the ARCore and ARKit packages being written by us. You may need to look into 3rd facial recognition plugins for Unity but we can't help with 3rd party plugins.
     
  14. makaka-org

    makaka-org

    Joined:
    Dec 1, 2013
    Posts:
    1,026
    OpenCV for Unity, e.g. The videos contain examples with Rear Camera and Face Tracking.