Sebastian Schmidt
Sebastian Schmidt
There is also https://github.com/google/mediapipe/issues/5039, I wonder if you are hitting the same issue.
Your best bet is to convert the WebGLTexture to an ImageBitmap for now.
You should be able to transfer GPU-to-GPU with an ImageBitmap: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/transferToImageBitmap. This is much cheaper than creating a CPU based ImageData. Yes, DrawingUtils supports GPU and CPU based masks.
Once you draw the texture to a canvas you should be able to use the `transferToImageBitmap()` function.
Is this issue blocking you from using this API? You should have a single FaceDetector instance that you can use for multiple face detection calls.
The engineer behind our blendshape demo suggest using the height and width of the media input to multiply the normalized keypoints as the 3D landmarks and the transformation matrix do...
This is part of our feature backlog, but will likely take a while to complete.
For Windows, I would suggest using the JS API.
Will get back to you when this is fixed, but unfortunately cannot promise a timeline yet.
This seems like something you should be able to fix by configuring Svelte. See how this problem is supposed to be fixed for `window`: https://www.okupter.com/blog/sveltekit-window-is-not-defined `self` should exist almost everywhere:...