Skip to content

Commit

Permalink
correcting pose detection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalacho-mit committed Jul 25, 2024
1 parent d671d1d commit 3a93d5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/src/teachableMachine/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export default class teachableMachine extends extension({
const imageBitmap = await createImageBitmap(frame);
return await model.predict(imageBitmap);
case this.ModelType.POSE:
if (!frame) return null;
const { pose, posenetOutput } = await model.estimatePose(frame);
return await model.predict(posenetOutput);
case this.ModelType.AUDIO:
Expand Down

0 comments on commit 3a93d5b

Please sign in to comment.