WebGL support
hello!I want to ask WebGL support possible? Will it be possible to support WebGL in the future?
I haven't thought seriously about it yet, so I don't know (at least, JS API exists). If requested, I might try to support it in the future.
Okay thank you
Hello! I'd also be interested in WebGL support. If I wanted to start looking at it independently, do you have a recommendation of where to start?
I guess some code can't be compiled, so first you would need to fix such compile-time errors.
cf. https://github.com/homuler/MediaPipeUnityPlugin/blob/master/C/mediapipe_api/import_model.bzl#L56
+1 for WebGL support!
@homuler For WebGL, the Unity C# functions which return type Task will need to be refactored, as System.Threading is not supported in WebGL. Something like an async void which takes a System.Action<T> as a completion callback is how I have gotten around this in the past.
If you're willing to do the plugin work, I'm sure contributors here (including me) would help on the Unity C# side.
I sent you a message regarding WebGL plans in the MediaPipe slack channel, as well.
+1 for WebGL support!
Can't wait for it.
+1 : )
I've been looking into this for a few days and have confirmed that FaceMesh works on CPU (but it's just hopelessly slow). I'm trying to modify it to use WebGL for inference, but it probably won't be fast enough to be useful (cf. https://github.com/prantoran/mediapipe). The official JS version may be performing well enough, but it appears to be using internal code that we cannot access.
any recent progress on this?