Toggle navigation
Toggle navigation
This project
Loading...
Sign in
한우준
/
Straight-Up
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
MrMirror21
2020-12-10 15:19:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9d09e19ef71426c8c973cb189716f20855046cb3
9d09e19e
1 parent
7dd5f67e
adjust number of function
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
straight-up/.eslintcache
straight-up/src/AnalysisPose.js
straight-up/.eslintcache
View file @
9d09e19
This diff is collapsed. Click to expand it.
straight-up/src/AnalysisPose.js
View file @
9d09e19
...
...
@@ -33,17 +33,17 @@ const checkStraight = (resData, position) => { //resData: API로 받은 JSON 객
trust_value
.
push
(
resData
[
i
+
2
]);
}
if
(
position
===
'front'
)
{
//정면 사진일 경우
//사용할 데이터의 신뢰도가 0.
4
미만이면 실행하지 않음
if
(
trust_value
[
ear
]
<
0.
4
)
{
//사용할 데이터의 신뢰도가 0.
2
미만이면 실행하지 않음
if
(
trust_value
[
ear
]
<
0.
2
)
{
return
'error_low_trust_value (keypoint:left_ear:4)'
}
if
(
trust_value
[
ear
+
1
]
<
0.
4
)
{
if
(
trust_value
[
ear
+
1
]
<
0.
2
)
{
return
'error_low_trust_value (keypoint:right_ear:5)'
}
if
(
trust_value
[
shoulder
]
<
0.
4
)
{
if
(
trust_value
[
shoulder
]
<
0.
2
)
{
return
'error_low_trust_value (keypoint:left_shoulder:6)'
}
if
(
trust_value
[
shoulder
+
1
]
<
0.
4
)
{
if
(
trust_value
[
shoulder
+
1
]
<
0.
2
)
{
return
'error_low_trust_value (keypoint:right_shoulder_7)'
}
...
...
@@ -69,13 +69,13 @@ const checkStraight = (resData, position) => { //resData: API로 받은 JSON 객
shoulder
++
;
hip
++
;
}
if
(
trust_value
[
hip
]
<
0.
4
)
{
//사용할 데이터의 신뢰도가 0.4
미만이면 실행하지 않음
if
(
trust_value
[
hip
]
<
0.
2
)
{
//사용할 데이터의 신뢰도가 0.2
미만이면 실행하지 않음
return
`error_low_trust_value (keypoint:
${
position
}
hip)`
;
}
if
(
trust_value
[
shoulder
]
<
0.
4
)
{
if
(
trust_value
[
shoulder
]
<
0.
2
)
{
return
`error_low_trust_value (keypoint:
${
position
}
shoulder)`
;
}
if
(
trust_value
[
ear
]
<
0.
4
)
{
if
(
trust_value
[
ear
]
<
0.
2
)
{
return
`error_low_trust_value (keypoint:
${
position
}
ear)`
;
}
//엉덩이(12)-어깨(6) 각도가 70도 이하일 경우 > 굽은등
...
...
Please
register
or
login
to post a comment