Skip to content

Commit

Permalink
[feat/#46] 꼬리뼈 앉기 탐지 로직 고도화
Browse files Browse the repository at this point in the history
  • Loading branch information
lkhoony committed Sep 24, 2024
1 parent 2de9468 commit 19a3731
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/utils/detector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,12 @@ export const detectTailboneSit = (refer: pose[], comp: pose[]): boolean | null =

const referAngle = getAngleBetweenLines(referRightShoulderEarSlope, referLeftShoulderEarSlope)
const compAngle = getAngleBetweenLines(compLeftShoulderEarSlope, compRightShoulderEarSlope)

if (referRatio * RATIO_DIFF_THRESHOLD > compRatio && referShoulderMidPointY < compShoulderMidPointY && referAngle * 1.2 < compAngle) {

if (
referRatio * RATIO_DIFF_THRESHOLD > compRatio &&
referShoulderMidPointY < compShoulderMidPointY &&
referAngle * 1.2 < compAngle
) {
return true
} else {
return false
Expand Down

0 comments on commit 19a3731

Please sign in to comment.