outputs specifies what JSON output we want from our schema once the video is finished processing. In this case, we care about the number of reps and the hip-knee joint angle throughout the video.

The output of this function will be the analysis result of the video. It will be accessible from the Get Analysis endpoint when using server-side processing, or as the output of the SDK when performing on-device processing.

Function Defintion

async function outputs() {
  return {};
}

Examples

Return the number of reps and the hip-knee joint angle throughout the video.

  async outputs() {
    return {
      reps: this.reps,
      hipKneeAngles: this.hipKneeAngles,
    }
  }