Skip to content

Commit

Permalink
refactor: adds jsdocs to bodypix
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyklee committed Feb 13, 2022
1 parent 93730b2 commit da47933
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/BodyPix/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ class BodyPix {
/**
* Create BodyPix.
* @param {HTMLVideoElement} video - An HTMLVideoElement.
* @param {object} options - An object with options.
* @param {function} callback - A callback to be called when the model is ready.
* @param {{
* multiplier: Number;
* outputStride: Number;
* segmentationThreshold: Number;
* palette: Object;
* returnTensors: Boolean;
* }} options - An object with options.
* @param {Function} callback - A callback to be called when the model is ready.
*/
constructor(video, options, callback) {
this.video = video;
Expand Down

0 comments on commit da47933

Please sign in to comment.