人脸数据重置后加刷新逻辑;人脸识别距离调整;
This commit is contained in:
@@ -217,9 +217,11 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
viewModel.getUserFaceCache(pageNo = 1, onSuccess = {
|
viewModel.getUserFaceCache(pageNo = 1, onSuccess = {
|
||||||
|
recognizeViewModel.refreshFaceList()
|
||||||
hideWaitingDialog()
|
hideWaitingDialog()
|
||||||
ToastUtils.showToast("人脸数据已更新")
|
ToastUtils.showToast("人脸数据已更新")
|
||||||
}, onFailure = { errMsg ->
|
}, onFailure = { errMsg ->
|
||||||
|
hideWaitingDialog()
|
||||||
ToastUtils.showToast(errMsg)
|
ToastUtils.showToast(errMsg)
|
||||||
})
|
})
|
||||||
}).show()
|
}).show()
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ public class FaceHelper implements FaceListener {
|
|||||||
FaceInfo currentFaceInfo = faceInfoList.get(0);
|
FaceInfo currentFaceInfo = faceInfoList.get(0);
|
||||||
// L.e("currentFaceInfo width=" + currentFaceInfo.getRect().width() +
|
// L.e("currentFaceInfo width=" + currentFaceInfo.getRect().width() +
|
||||||
// "---height" + currentFaceInfo.getRect().height());
|
// "---height" + currentFaceInfo.getRect().height());
|
||||||
if (currentFaceInfo.getRect().width() < 200) {//距离远(人脸小),不识别
|
if (currentFaceInfo.getRect().width() < 260) {//距离远(人脸小),不识别
|
||||||
clearLeftFace(facePreviewInfoList);
|
clearLeftFace(facePreviewInfoList);
|
||||||
return facePreviewInfoList;
|
return facePreviewInfoList;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user