UNPKG

handsfree

Version:

Quickly integrate face, hand, and/or pose tracking to your frontend projects in a snap ✨👌

20 lines (18 loc) 369 B
/** * Setup Handsfree */ handsfree = new Handsfree({ isClient: true, hands: true }) handsfree.enablePlugins('browser') /** * Handle messages from background script */ chrome.runtime.onMessage.addListener(function (message) { switch (message.action) { case 'handsfree-data': handsfree.runPlugins(message.data) return } })