Mediapipe tasks-vision iOS 17+ inside Web Workers not working, despite iOS 17+ already support it. #5292
Labels
platform:ios
MediaPipe IOS issues
platform:javascript
MediaPipe Javascript issues
task:face landmarker
Issues related to Face Landmarker: Identify facial features for visual effects and avatars.
type:support
General questions
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
iOS 17.4.1 / iPadOS 17.4.1
MediaPipe Tasks SDK version
0.10.12 (latest on npm)
Task name (e.g. Image classification, Gesture recognition etc.)
All
Programming Language and version (e.g. C++, Python, Java)
Javascript
Describe the actual behavior
OffscreenCanvas is not used inside Web Workers when iOS 17+ supports it. It tries to create a normal canvas via document.createElement("canvas"), which obviously does not works inside a Worker.
Describe the expected behaviour
tasks-vision creates the OffscreenCanvas instead of DOM canvas inside Web Workers
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs
No response
The text was updated successfully, but these errors were encountered: