mediapipe
mediapipe copied to clipboard
Can't load mediapipe task-vision inside a web worker
I need to load mediapipe task-vision in a web worker for an electron app. I tried all sorts of ways and nothing worked. Is there an example of a proper way to load the task-vision bundle in a web worker so I can run all the detection functions inside the web worker?
Thanks!
Hi @desi-dimitrova,
Currently, the web worker is not very familiar with our task API. However, we are marking this as a feature request and will share it with the team to ensure it is on our radar. We will consider making it more user-friendly if there is more demand in the near future.
Thank you!!
@kuaashish any updates on this? We are trying to see if the new task-vision api can run in a webworker. It would be the only way for us to use it, as the performance of the main thread it highly critical for us.