asus4 / tf-lite-unity-sample

TensorFlow Lite Samples on Unity
834 stars 249 forks source link

WebCamInput Development #334

Closed paulorenanmelo closed 3 months ago

paulorenanmelo commented 4 months ago

Added properties to support setting camera configuration externally via script

Added support for auto detecting multiple cameras when using multiple WebCamInput objects in the scene and they're all set to open the same camera, in this case it will auto detect the next available camera

Allowed WebCamName property drawer to receive a value set from script and update the inspector accordingly

Paused camera when WebCamInput object is disabled

asus4 commented 3 months ago

Thanks for the PR @paulorenanmelo. Code changes looks good and merging this.

In recent examples such as VideoClassificationSample, I've started migrating to another webcam library TextureSource. It might be more useful.