AR Face Tracking for Android - Back camera

Hi everyone,

I’ve implemented a face-tracking filter using AR Foundation, but I’ve run into a problem when i wanted to use the back camera.

With the front camera the filter works well, and only presenting the ‘face’ when detecting a person’s face.

When i wanted to flip the camera to the ‘world’ using the back camera, When the camera opens, it shows the face regardless to a face actually recognized.

My questions:

  1. Is AR Foundation capable of face-tracking with the back camera?
  2. If yes, what versions, or packages do i need to download?
  3. Is there a modification i need to do in my environment? adding specific scripts?, and where?

Any tips, would be very helpful.
Thanks in advance!

Your question is not correct. You must learn ARKit/ARCore capabilities directly for your case. The AR Foundation just a bridge to these frameworks.

  • For example, ARKit supports Face Tracking only for the Front Camera because only on the front side you have appropriate sensor.
  • Based on the Mesh on the screenshot, you are interested in ARCore. So based on this comment, the situation is the same.

Alternatively, you can use OpenCV for Unity, e.g. the videos contain examples with Rear Camera and Face Tracking.

No, face tracking on ARCore requires the use of the user-facing or “selfie” camera.

It should be possible with just AR Foundation and ARCore. I would recommend AR Foundation 6, but it should be possible in older versions too.

3 Likes