Skip to content

Commit

Permalink
Merge pull request #41 from DDD-Community/feat/#32
Browse files Browse the repository at this point in the history
[feat/#32] 빌드 실패 이슈 해결
  • Loading branch information
G-hoon authored Aug 29, 2024
2 parents 98c9d8c + 76ec25a commit e246ebb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/AnalysisDashboard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useRef, useEffect } from "react"
import { useState, useRef, useEffect } from "react"
import { useQuery } from "@tanstack/react-query"
import { getTodayAnalysis, TodayAnalysisData } from "@/api/analysis"
import { poseType } from "@/api/pose"
Expand Down
3 changes: 1 addition & 2 deletions src/utils/detector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export const detectTailboneSit = (refer: pose[], comp: pose[]): boolean | null =
const compShoulderDistance = getDistance(compLeftShoulder, compRightShoulder)
const compEearsDistance = getDistance(compLeftEar, compRightEar)

// 조건 1: 현재(comp)의 귀 중간 y좌표가 스냅샷(refer)보다 아래에 있고,
// 조건 1: 현재(comp)의 귀 중간 y좌표가 스냅샷(refer)보다 아래에 있고,
// 현재(comp)의 어깨 중간 y좌표도 스냅샷(refer)보다 아래에 있는지 확인
const compY = compEarMid.y - referEarMid.y > 20 && compShoulderMid.y - referShoulderMid.y > 20

Expand All @@ -290,4 +290,3 @@ export const detectTailboneSit = (refer: pose[], comp: pose[]): boolean | null =
// 두 조건을 모두 만족하면 true 반환, 그렇지 않으면 false 반환
return compY && compDistance
}

0 comments on commit e246ebb

Please sign in to comment.