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