mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Can't load mediapipe task-vision inside a web worker

Open desi-dimitrova opened this issue 1 year ago • 2 comments

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!

desi-dimitrova avatar Jun 12 '24 15:06 desi-dimitrova

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 avatar Jul 29 '24 08:07 kuaashish

@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.

caspar-goeke avatar May 27 '25 07:05 caspar-goeke