# Event: handsfree-data

This event is triggered on the document on each frame after handsfree.start(). It receives an object containing data for each active model. This is a great way to work with the data in situations where you don't have access to your handsfree instance (for example, inside modules).

The data is available on handsfree.data or in the individual models at handsfree.model.weboji.data, handsfree.model.handpose.data

# Receives

An event object containing {weboji, handpose, hands, facemesh, pose} with data for each. Because this is an event the data is stored in event.detail

# Example

// Instantiate
const handsfree = new Handsfree({weboji: true, handpose: true})

// Listen for the event
document.addEventListener('handsfree-data', (event) => {
  const data = event.detail
  console.log(data.weboji, data.handpose)
handsfree.on('data', (event) => {
  const data = event.detail
  console.log(data.weboji, data.handpose)

// Start collecting data