Syn-McJ / TFClassify-Unity

An example of using Tensorflow with Unity for image classification and object detection.
MIT License
167 stars 47 forks source link

Unable to find back camera #26

Closed YMadane closed 5 years ago

YMadane commented 5 years ago

The project is building but getting this error. My PC has a back camera as well

image

yxzhan commented 5 years ago

There is a logic in Scripts/PhoneCamera.cs line 68 that only use back camera only, if you're running on laptop. you can just comment it out.

 // if(!devices[i].isFrontFacing)
 // {
              this.backCamera = new WebCamTexture(devices[i].name, Screen.width, Screen.height);
 // }