|
@@ -302,7 +302,8 @@ async function fnRedrawDiscern() {
|
|
|
const best = state.faceMatcher.findBestMatch(descriptor)
|
|
const best = state.faceMatcher.findBestMatch(descriptor)
|
|
|
|
|
|
|
|
if (best) {
|
|
if (best) {
|
|
|
- if (best._distance <= 0.6) {
|
|
|
|
|
|
|
+ // 临时加大匹配范围
|
|
|
|
|
+ if (best._distance <= 0.9) {
|
|
|
state.failCount = 0
|
|
state.failCount = 0
|
|
|
tagColor.value = 'green'
|
|
tagColor.value = 'green'
|
|
|
tagInfo.value = '录制中,请确保面部不要离开取景框'
|
|
tagInfo.value = '录制中,请确保面部不要离开取景框'
|