shaqian / TF-Unity-ARFoundation

Object Detection and ARFoundation in Unity

Home Page:https://medium.com/@shaqian629/object-detection-and-arfoundation-in-unity-8782b1ee6ea3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TF-Unity-ARFoundation

Detect apple (the fruit) from camera frame then place an AR apple on it. Uses TensorFlow for object detection and ARFoundation for AR experience. Tested with iOS and ARKit only but should work with Android and ARCore as well.

The scene is modified from CameraImage in arfoundation-samples.

Usage

  1. Open the project in Unity3d, go to Window > Package Manager, install AR Foundation and at least one platform-specific AR package:
  • ARKit XR Plugin
  • ARCore XR Plugin
  1. Follow the installation instructions in TF-Unity.

  2. Build and run.