From 19a3731a98e99df8386668c9d277080e7e870a12 Mon Sep 17 00:00:00 2001 From: "lkh14011424@gmail.com" Date: Tue, 24 Sep 2024 20:49:39 +0900 Subject: [PATCH] =?UTF-8?q?[feat/#46]=20=EA=BC=AC=EB=A6=AC=EB=BC=88=20?= =?UTF-8?q?=EC=95=89=EA=B8=B0=20=ED=83=90=EC=A7=80=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EA=B3=A0=EB=8F=84=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/detector.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/utils/detector.ts b/src/utils/detector.ts index 1de8671..6b8c136 100644 --- a/src/utils/detector.ts +++ b/src/utils/detector.ts @@ -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