Showing
2 changed files
with
8 additions
and
8 deletions
This diff is collapsed. Click to expand it.
| ... | @@ -33,17 +33,17 @@ const checkStraight = (resData, position) => { //resData: API로 받은 JSON 객 | ... | @@ -33,17 +33,17 @@ const checkStraight = (resData, position) => { //resData: API로 받은 JSON 객 |
| 33 | trust_value.push(resData[i + 2]); | 33 | trust_value.push(resData[i + 2]); |
| 34 | } | 34 | } |
| 35 | if (position === 'front') { //정면 사진일 경우 | 35 | if (position === 'front') { //정면 사진일 경우 |
| 36 | - //사용할 데이터의 신뢰도가 0.4 미만이면 실행하지 않음 | 36 | + //사용할 데이터의 신뢰도가 0.2 미만이면 실행하지 않음 |
| 37 | - if (trust_value[ear] < 0.4) { | 37 | + if (trust_value[ear] < 0.2) { |
| 38 | return 'error_low_trust_value (keypoint:left_ear:4)' | 38 | return 'error_low_trust_value (keypoint:left_ear:4)' |
| 39 | } | 39 | } |
| 40 | - if (trust_value[ear + 1] < 0.4) { | 40 | + if (trust_value[ear + 1] < 0.2) { |
| 41 | return 'error_low_trust_value (keypoint:right_ear:5)' | 41 | return 'error_low_trust_value (keypoint:right_ear:5)' |
| 42 | } | 42 | } |
| 43 | - if (trust_value[shoulder] < 0.4) { | 43 | + if (trust_value[shoulder] < 0.2) { |
| 44 | return 'error_low_trust_value (keypoint:left_shoulder:6)' | 44 | return 'error_low_trust_value (keypoint:left_shoulder:6)' |
| 45 | } | 45 | } |
| 46 | - if (trust_value[shoulder + 1] < 0.4) { | 46 | + if (trust_value[shoulder + 1] < 0.2) { |
| 47 | return 'error_low_trust_value (keypoint:right_shoulder_7)' | 47 | return 'error_low_trust_value (keypoint:right_shoulder_7)' |
| 48 | } | 48 | } |
| 49 | 49 | ||
| ... | @@ -69,13 +69,13 @@ const checkStraight = (resData, position) => { //resData: API로 받은 JSON 객 | ... | @@ -69,13 +69,13 @@ const checkStraight = (resData, position) => { //resData: API로 받은 JSON 객 |
| 69 | shoulder++; | 69 | shoulder++; |
| 70 | hip++; | 70 | hip++; |
| 71 | } | 71 | } |
| 72 | - if (trust_value[hip] < 0.4) { //사용할 데이터의 신뢰도가 0.4 미만이면 실행하지 않음 | 72 | + if (trust_value[hip] < 0.2) { //사용할 데이터의 신뢰도가 0.2 미만이면 실행하지 않음 |
| 73 | return `error_low_trust_value (keypoint:${position}hip)`; | 73 | return `error_low_trust_value (keypoint:${position}hip)`; |
| 74 | } | 74 | } |
| 75 | - if (trust_value[shoulder] < 0.4) { | 75 | + if (trust_value[shoulder] < 0.2) { |
| 76 | return `error_low_trust_value (keypoint:${position}shoulder)`; | 76 | return `error_low_trust_value (keypoint:${position}shoulder)`; |
| 77 | } | 77 | } |
| 78 | - if (trust_value[ear] < 0.4) { | 78 | + if (trust_value[ear] < 0.2) { |
| 79 | return `error_low_trust_value (keypoint:${position}ear)`; | 79 | return `error_low_trust_value (keypoint:${position}ear)`; |
| 80 | } | 80 | } |
| 81 | //엉덩이(12)-어깨(6) 각도가 70도 이하일 경우 > 굽은등 | 81 | //엉덩이(12)-어깨(6) 각도가 70도 이하일 경우 > 굽은등 | ... | ... |
-
Please register or login to post a comment