فهرست منبع

upgrade:人脸框问题优化

xwh 4 هفته پیش
والد
کامیت
7ddab4f920
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      app/src/main/java/com/hanghui/senic/baiduface/BaiduFacePreviewActivity.java

+ 2 - 3
app/src/main/java/com/hanghui/senic/baiduface/BaiduFacePreviewActivity.java

@@ -1104,6 +1104,7 @@ public class BaiduFacePreviewActivity extends BaiduFaceMainActivity implements B
 
         isNeedVerify = true;
 
+        bdFaceCheckConfig=FaceUtils.getInstance().getBDFaceCheckConfig();
         bdFaceCheckConfig.setSecondFeature(secondFeature);
 
         bdFaceCheckConfig.setFeatureCheckMode(4);
@@ -1275,9 +1276,7 @@ public class BaiduFacePreviewActivity extends BaiduFaceMainActivity implements B
     @Override
     public void invokeResume() {
         isNeedVerify = true;
-        if(bdFaceCheckConfig==null){
-            bdFaceCheckConfig=FaceUtils.getInstance().getBDFaceCheckConfig();
-        }
+        bdFaceCheckConfig=FaceUtils.getInstance().getBDFaceCheckConfig();
         bdFaceCheckConfig.setFeatureCheckMode(3);
         AppHandler.getHandler().removeCallbacks(mPersonCardTimeoutRunnable);
     }