Skip to content

Commit 19a3731

Browse files
committed
[feat/#46] 꼬리뼈 앉기 탐지 로직 고도화
1 parent 2de9468 commit 19a3731

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/utils/detector.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,12 @@ export const detectTailboneSit = (refer: pose[], comp: pose[]): boolean | null =
355355

356356
const referAngle = getAngleBetweenLines(referRightShoulderEarSlope, referLeftShoulderEarSlope)
357357
const compAngle = getAngleBetweenLines(compLeftShoulderEarSlope, compRightShoulderEarSlope)
358-
359-
if (referRatio * RATIO_DIFF_THRESHOLD > compRatio && referShoulderMidPointY < compShoulderMidPointY && referAngle * 1.2 < compAngle) {
358+
359+
if (
360+
referRatio * RATIO_DIFF_THRESHOLD > compRatio &&
361+
referShoulderMidPointY < compShoulderMidPointY &&
362+
referAngle * 1.2 < compAngle
363+
) {
360364
return true
361365
} else {
362366
return false

0 commit comments

Comments
 (0)