- 监听摄像头帧数回调时,再去检测人脸会奔溃,怎么回事?
1. this.listener = this.ctx.onCameraFrame((frame) => { this.frameData = frame.data; this.frameWidth = frame.width; this.frameHeight = frame.height; that.session.detectFace({ frameBuffer: frame.data, width: frame.width, height: frame.height, scoreThreshold: 0.8, sourceType: 0, modelMode: 1, }) }) this.listener.start()
2022-10-09 - 通过摄像头实时检测 wx.createVKSession 如何调用前置摄像头?
通过摄像头实时检测 wx.createVKSession 如何调用前置摄像头? const session = wx.createVKSession({ track: { face: { mode: 1 } // mode: 1 - 使用摄像头;2 - 手动传入图像 }, version: 'v1' }) // 摄像头实时检测模式下,监测到人脸时,updateAnchors 事件会连续触发 (每帧触发一次) session.on('updateAnchors', anchors => { console.log('anchors.points', anchors.points) console.log('anchors.origin', anchors.origin) console.log('anchors.size', anchors.size) console.log('anchors.angle', anchors.angle) }) // 当人脸从相机中离开时,会触发 removeAnchors 事件 session.on('removeAnchors', () => { console.log('removeAnchors') })
2022-10-07 - 自建应用提交审批申请,报错301025?
同一个json 使用 API 请求报错 {"errcode":301025,"errmsg":"get approval param error:creator_userid not in app visiable range"} 使用 调试工具不报错 [图片] 好奇怪的问题 发送json { "apply_data":{ "contents":[ { "control":"Date", "id":"Date-1663767805278", "value":{ "date":{ "type":"hour", "s_timestamp":"1663774811" } } }, { "control":"Textarea", "id":"Textarea-1663767842748", "value":{ "text":"212 OaApplyServiceImpl" } } ] }, "creator_userid":"a2c0c2158595ca561e1cc2715ee7dec0", "summary_list":[ { "summary_info":[ { "lang":"zh_CN", "text":"补卡原因:dada" } ] }, { "summary_info":[ { "lang":"zh_CN", "text":"补卡时间:2022-09-21T23:40:11.166" } ] }, { "summary_info":[ { "lang":"zh_CN", "text":"补卡事由:212 OaApplyServiceImpl" } ] } ], "template_id":"3WKi3qhoDcfLmeWeDQkJWT", "use_template_approver":1 }
2022-09-21