- 为什么wx.createVKSession faceMode模式为1时不生效?
const session = wx.createVKSession({ track: { face: { mode: 1 } } }) session.on('updateAnchors', anchors => { session.update3DMode({ open3d: true }) anchors.forEach(anchor => { console.log('anchor.points', anchor.points) console.log('anchor.origin', anchor.origin) console.log('anchor.size', anchor.size) console.log('anchor.angle', anchor.angle) }) }) // 当人脸从相机中离开时,会触发 removeAnchors 事件 session.on('removeAnchors', () => { console.log('removeAnchors') }) session.start(errno => { if (errno) return }) 摄像头实时模式,只有start会触发,返回的errno为null
03-20 - 怎么通过wx.createVKSession updateAnchors去判断人脸遮挡?
this.cameraEngine = wx.createCameraContext() this.VKSession = wx.createVKSession({ track: { face: { mode: 2 } } }) this.VKSession.on('updateAnchors', anchors => { session.update3DMode({ open3d: true }) anchors.forEach(anchor => { console.log('anchor.points', anchor.points) console.log('anchor.origin', anchor.origin) console.log('anchor.size', anchor.size) console.log('anchor.angle', anchor.angle) }) }) this.VKSession.start(errno => { if (errno) return const listener = this.cameraEngine.onCameraFrame((frame) => { if (this.isVerify) return this.VKSession.detectFace({ frameBuffer: frame.data, width: frame.width, height: frame.height, scoreThreshold: 0.8, sourceType: 0, modelMode: 1, open3d: true }) }) listener.start() })
03-20 - win7系统的企微浏览器内核?
请问win7系统的企微浏览器内核是IE吗
2023-10-27 - 微信pc端浏览器能够监听页面失去焦点吗?
请问有办法监听页面失去焦点吗,判断页面是否可见
2023-03-23