|
@@ -140,7 +140,6 @@ Component({
|
|
}
|
|
}
|
|
console.log('准备录制')
|
|
console.log('准备录制')
|
|
this.setData({ topTips: topTips.ready })
|
|
this.setData({ topTips: topTips.ready })
|
|
- console.log(this.data.topTips)
|
|
|
|
// 视频帧回调节流函数
|
|
// 视频帧回调节流函数
|
|
let fn = throttle((frame: any) => {
|
|
let fn = throttle((frame: any) => {
|
|
// 人脸识别
|
|
// 人脸识别
|
|
@@ -180,8 +179,6 @@ Component({
|
|
const g = this.properties.faceCredibility
|
|
const g = this.properties.faceCredibility
|
|
const { pitch, yaw, roll } = res.angleArray
|
|
const { pitch, yaw, roll } = res.angleArray
|
|
const { p, y, r } = this.properties.faceAngle
|
|
const { p, y, r } = this.properties.faceAngle
|
|
- console.log('res.confArray.global:', global)
|
|
|
|
- console.log('res.angleArray:', pitch, yaw, roll)
|
|
|
|
const isGlobal = global >= g
|
|
const isGlobal = global >= g
|
|
const isPitch = Math.abs(pitch) <= p
|
|
const isPitch = Math.abs(pitch) <= p
|
|
const isYaw = Math.abs(yaw) <= y
|
|
const isYaw = Math.abs(yaw) <= y
|