Skip to content

Commit

Permalink
[feat/#46] 꼬리뼈로 앉기 감도 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
lkhoony committed Sep 26, 2024
1 parent 265b56d commit 3105165
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/detector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,13 @@ export const detectTailboneSit = (refer: pose[], comp: pose[]): boolean | null =

const referRatio = referEarDistance / referShoulderDistance
const compRatio = compEarDistance / compShoulderDistance

if (
compShoulderDistance / referShoulderDistance < 0.88 &&
compEarDistance / referEarDistance < 0.88 &&
compShoulderDistance / referShoulderDistance < 0.9 &&
compEarDistance / referEarDistance < 0.9 &&
referShoulderMidpoint.y < compShoulderMidpoint.y &&
referEarMidpoint.y < compEarMidpoint.y &&
Math.abs(referRatio - compRatio) > 0.018
Math.abs(referRatio - compRatio) > 0.015
) {
return true
} else {
Expand Down

0 comments on commit 3105165

Please sign in to comment.