google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.52k stars 5.16k forks source link

Example of using Web Worker for FaceLandmarker #5169

Open edankwan opened 8 months ago

edankwan commented 8 months ago

MediaPipe Solution (you are using)

FaceLandmarker

Programming language

Javascript

Are you willing to contribute it

Yes

Describe the feature and the current behaviour/state

In the guide, it mentioned the use of Web Worker but it doesn't seem like an easy task

Will this change the current API? How?

No response

Who will benefit with this feature?

Anyone who is learning to use Mediapipe

Please specify the use cases for this feature

Having the face detection without blocking the UI thread.

Any Other info

No response

ayushgdev commented 8 months ago

Hello @edankwan We understand web workers can be difficult to configure in any app. Please allow us sometime to create an example app with web worker usage. We believe this request can serve other users as well, so will try to create a vanilla Javascript example for easier follow ups.

kuaashish commented 4 months ago

Hi @edankwan,

Due to limited bandwidth, this is not our top priority right now. However, we are sharing this with the team to ensure it is on our radar. We may be able to address it later.

Thank you!!