|
@@ -5,6 +5,7 @@ import android.content.Context;
|
|
import android.graphics.Rect;
|
|
import android.graphics.Rect;
|
|
import android.hardware.Camera;
|
|
import android.hardware.Camera;
|
|
import android.os.Build;
|
|
import android.os.Build;
|
|
|
|
+import android.os.Environment;
|
|
import android.util.AttributeSet;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import android.view.View;
|
|
import android.widget.RelativeLayout;
|
|
import android.widget.RelativeLayout;
|
|
@@ -22,6 +23,7 @@ import com.sunwin.visitorapp.face.FRAbsLoopFactory;
|
|
import com.sunwin.visitorapp.model.OpenDoorByFaceNetResultInfo;
|
|
import com.sunwin.visitorapp.model.OpenDoorByFaceNetResultInfo;
|
|
import com.sunwin.visitorapp.model.bus.DescEvent;
|
|
import com.sunwin.visitorapp.model.bus.DescEvent;
|
|
import com.sunwin.visitorapp.utils.Constant;
|
|
import com.sunwin.visitorapp.utils.Constant;
|
|
|
|
+import com.sunwin.visitorapp.utils.FileUtil;
|
|
import com.sunwin.visitorapp.utils.LogUtil;
|
|
import com.sunwin.visitorapp.utils.LogUtil;
|
|
import com.sunwin.visitorapp.utils.SharePrefenceUtils;
|
|
import com.sunwin.visitorapp.utils.SharePrefenceUtils;
|
|
|
|
|
|
@@ -215,7 +217,7 @@ public class FaceDetecterView extends RelativeLayout {
|
|
LogUtil.e(TAG, "接收成功信息");
|
|
LogUtil.e(TAG, "接收成功信息");
|
|
LogUtil.e(TAG,"----mListener---"+mListener);
|
|
LogUtil.e(TAG,"----mListener---"+mListener);
|
|
if (mListener != null) {
|
|
if (mListener != null) {
|
|
-
|
|
|
|
|
|
+ FileUtil.DeleteFolder(Environment.getExternalStorageDirectory().getPath()+"/fpimg/");
|
|
mListener.detectedUser(event.getOpenDoorByFaceNetResultInfo());
|
|
mListener.detectedUser(event.getOpenDoorByFaceNetResultInfo());
|
|
}
|
|
}
|
|
} else if (event.getDesc().equalsIgnoreCase(DescEvent.DESC_FR_NET_ERROR)) {
|
|
} else if (event.getDesc().equalsIgnoreCase(DescEvent.DESC_FR_NET_ERROR)) {
|