shaqian / TF-Unity-ARFoundation

Object Detection and ARFoundation in Unity
https://medium.com/@shaqian629/object-detection-and-arfoundation-in-unity-8782b1ee6ea3
66 stars 19 forks source link

Errors in CameraController.cs and TensorflowSharp does not exist #10

Open DaphiFluffi opened 3 years ago

DaphiFluffi commented 3 years ago

Hi @shaqian,

Thank you for creating this project. 😄 Unfortunately, I cannot get the CameraImage scene to run.

System Versions:

I tried using all three models, but none of them have worked so far. The webcam just does not turn on and nothing happens in the scene. This is the Error I get with Tiny even though I assigned the .bytes and the .txt file in the Editor.

NullReferenceException: Object reference not set to an instance of an object CameraController.CloseTF () (at Assets/Scripts/CameraController.cs:176) CameraController.OnDisable () (at Assets/Scripts/CameraController.cs:64)

When I try to switch to Android, it says that there is no reference for TensoflowSharp : Assets\TensorFlow\Classifier.cs(31,9): error CS0103: The name 'TensorFlowSharp' does not exist in the current context

All help is apprechiated. 🚀