From 0e66eaeec6f2ffddc76fbf5b740112710a8efc2c Mon Sep 17 00:00:00 2001 From: agrshch <98658900+agrshch@users.noreply.github.com> Date: Fri, 11 Oct 2024 15:36:33 +0200 Subject: [PATCH] fixed the video argument problem in the BodySegmentation constructor (#213) * added a lost video argument to the BodySegmentation constructor * removed redundant this.video property --- src/BodySegmentation/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/BodySegmentation/index.js b/src/BodySegmentation/index.js index b9bdfa37..4fc3a47b 100644 --- a/src/BodySegmentation/index.js +++ b/src/BodySegmentation/index.js @@ -20,7 +20,7 @@ import { handleModelName } from "../utils/handleOptions"; class BodySegmentation { /** * Create BodyPix. - * @param {HTMLVideoElement} [video] - An HTMLVideoElement. + * @param {String} [modelName] - A name of a model to use. * @param {object} [options] - An object with options. * @param {function} [callback] - A callback to be called when the model is ready. */ @@ -31,7 +31,6 @@ class BodySegmentation { "SelfieSegmentation", "bodySegmentation" ); - this.video = video; this.model = null; this.config = options; this.runtimeConfig = {};