New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
black canvas on safari for MediaPipe Selfie Segmentation in javascript #2675
Comments
That's quite possible, but in any case I suspect this is a Safari 15-only issue, since Safari 15 now has support for WebGL2, so if you try with a different version of Safari I imagine you should be fine. Of course, we'd like to support Safari 15 as well, so having an issue tracking that seems like a good idea if that is indeed the problem here. |
thanks. The demo doesn't crash for me. And I can see that the model is being updated since the function onResults() keeps being called for each frame. Platform:
Log: In the meantime, is there an API documentation for the onResults() function? |
I still suspect there's a good chance the issues are related. Note that the WebGL context has major version 3 (Meaning ES 3.0, which corresponds to WebGL2). Unfortunately the only documentation aside from the basic overview on mediapipe.dev or the CodePen demos would be the TypeScript definitions themselves (*.d.ts), but those are definitely the most informative and can be browsed directly on jsdelivr (example for pose: https://cdn.jsdelivr.net/npm/@mediapipe/pose@0.4.1633558788/index.d.ts). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
Hi @tyrmullen and @sgowroji , |
The problem has not been investigated, and I don't have an ETA for doing so at this time. Hopefully things will get better from the WebKit side in the meantime? |
Hello @nicolasoros
For the Javascript API of |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
Hello,
I'm having issues rendering the output for the MediaPipe Selfie Segmentation on Safari only.
The canvas element that should display the video with the overlay is all black.
I see the same problem with the official demo examples from https://codepen.io/mediapipe/pen/wvJyQpq, and with my own code.
It seems that both results.image and results.segmentationMask used in the function onResults(results: mpSelfieSegmentation.Results) are ImageBitmap.
But it seems that ImageBitmap is not supported on Safari: https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap
Could that be the issue?
Safari version: 15.0
Thanks
The text was updated successfully, but these errors were encountered: