How to Build an AR Face Swap App in 15 Minutes or Less

Written by echo3d | Published 2021/01/02
Tech Story Tags: augmented-reality | augmentedreality | 3d | facial-detection | ar-face-swap | face-swapping | unity | hologram

TLDR Use Unity, AR Foundation, and echoAR to create your own augmented reality (AR) face swapping demo application. The full demo can also be found on echoAR’s GitHub. The app is a simple AR app that lets you swap your face with a hologram to create an AR experience. It is available for download at echoAR.xyz; Techstars ā€˜19’ is a cloud platform for augmented reality and virtual reality (VR) developers. It provides tools and server-side infrastructure to help developers quickly build and deploy AR/VR apps and experiences.via the TL;DR App

Can’t wait for a sequel for Nicolas Cage And John Travolta’s Face/Off movie? Then create your own simple augmented reality (AR) face swapping demo application with Unity, AR Foundation, and echoAR! The full demo can also be found on echoAR’sĀ GitHub.

Register

Don’t have an API key? Make sure to register for FREE atĀ echoAR.

Setup

  1. Create a new Unity project.
  2. Clone theĀ Unity-ARFoundation-echoARĀ sample code.
  3. Open the sample scene underĀ AR Foundation\Scenes\FaceTracking\FaceMesh.unity.
  4. Set the API keyĀ in theĀ echoAR.csĀ script inside theĀ echoAR\echoAR.prefabĀ using the Inspector.
  5. Add an image hologramĀ by uploading one of theĀ face-#.jpgĀ files from theĀ assetsĀ folder to the console.
  6. Overwrite the existingĀ echoAR/CustomBehaviour.csĀ script with the new CustomBehaviour.cs file.

Build & Run

Build and run the AR application. Verify that theĀ AR Foundation\Scenes\FaceTracking\FaceMeshĀ scene is ticked in theĀ Scenes in BuildĀ list and click Build And Run.

Learn More & Get Support

Refer to ourĀ documentationĀ to learn more about how to use Unity and echoAR. Feel free to reach out atĀ [email protected]Ā or join ourĀ support channel on Slack.
echoARĀ (http://www.echoAR.xyz; Techstars ’19) is a cloud platform for augmented reality (AR) and virtual reality (VR) that provides tools and server-side infrastructure to help developers & companies quickly build and deploy AR/VR apps and experiences.

Written by echo3d | Cloud platform for 3D asset management
Published by HackerNoon on 2021/01/02