|
|
@ -34,7 +34,7 @@ |
|
|
|
|
|
|
|
<view class="human-face-desc" |
|
|
|
v-else> |
|
|
|
{{ tipsText }} |
|
|
|
<!-- {{ tipsText }} --> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 说明 --> |
|
|
@ -259,7 +259,7 @@ |
|
|
|
|
|
|
|
const standard = 0.5 |
|
|
|
|
|
|
|
let faseP = 0.98 |
|
|
|
let faseP = 0.8 |
|
|
|
|
|
|
|
if (Math.abs(pitch) >= standard || Math.abs(roll) >= standard || |
|
|
|
Math.abs(yaw) >= standard) { |
|
|
@ -284,11 +284,14 @@ |
|
|
|
|
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
// 不管是否有人脸都是成功 |
|
|
|
this.tipsText = this.successText |
|
|
|
}, |
|
|
|
fail: (err) => { |
|
|
|
if (err.x == -1 || err.y == -1) { |
|
|
|
this.tipsText = '检测不到人' |
|
|
|
// this.tipsText = '检测不到人' |
|
|
|
} else { |
|
|
|
this.tipsText = err.errMsg || '网络错误,请退出页面重试' |
|
|
|
} |
|
|
|