Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nacmartin committed Mar 12, 2023
1 parent 435643d commit a9944f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/manitas/src/gestures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { GestureRecognizer, FilesetResolver } = vision;

const defaultConfig: ManitasConfig = {
gestureThreshold: 0.6,
gandednessThreshold: 0.8,
handednessThreshold: 0.8,
activeThreshold: -0.1,
videoHeight: "960px",
videoWidth: "1280px",
Expand Down Expand Up @@ -91,7 +91,7 @@ function runContinously(
let leftHand: HandState = { present: false };
handednesses.forEach((hand, idx) => {
const category: vision.Category = hand[0];
if (category.score > config.gandednessThreshold) {
if (category.score > config.handednessThreshold) {
// Ugly: we flip hands because we need to flip video
if (category.categoryName === "Left") {
rightHand = assembleHandEstimation(
Expand Down
2 changes: 1 addition & 1 deletion packages/manitas/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface GestureEventParams {

export interface ManitasConfig {
gestureThreshold: number;
gandednessThreshold: number;
handednessThreshold: number;
activeThreshold: number;
videoHeight: string;
videoWidth: string;
Expand Down

0 comments on commit a9944f8

Please sign in to comment.