victordibia / handtrack.js

A library for prototyping realtime hand detection (bounding box), directly in the browser.
https://victordibia.com/handtrack.js/
MIT License
2.83k stars 250 forks source link

Background loading? #72

Open ModischFabrications opened 2 years ago

ModischFabrications commented 2 years ago

handTrack.load(modelParams) will freeze the UI for 5..10s during loading time. This is unacceptable for a background task where responsiveness is more important than quick loading times. If it's just a network call it needs to be able to async, if it's a computationally expensive operation a web worker might be more useful. Both of these are hard to extend from the outside.