paint-brush
How to Build an AR Face Swap App in 15 Minutes or Lessby@echo3d
440 reads
440 reads

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

by echo3dJanuary 2nd, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How to Build an AR Face Swap App in 15 Minutes or Less
echo3d HackerNoon profile picture

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.