支付完成倒计时3秒返回首页;秤默认置零取消,打开直接识别物品;人脸识别图片显示拉伸优化;设置页面切换是否收费模式首页逻辑处理;
This commit is contained in:
@@ -88,8 +88,10 @@ public class ConfigUtil {
|
||||
* 默认相机分辨率
|
||||
*/
|
||||
// private static final String DEFAULT_PREVIEW_SIZE = "1280x720";
|
||||
// private static final String DEFAULT_PREVIEW_SIZE = "1080x720";
|
||||
private static final String DEFAULT_PREVIEW_SIZE = "720x1080";
|
||||
// private static final String DEFAULT_PREVIEW_SIZE = "608x456";
|
||||
private static final String DEFAULT_PREVIEW_SIZE = "1024x768";
|
||||
// private static final String DEFAULT_PREVIEW_SIZE = "1024x768";
|
||||
// private static final String DEFAULT_PREVIEW_SIZE = "800x600";
|
||||
// private static final String DEFAULT_PREVIEW_SIZE = "640x480";
|
||||
|
||||
|
||||
@@ -36,7 +36,10 @@ public class FaceApi {
|
||||
faceDao.deleteAll();
|
||||
faceDao.resetId();
|
||||
}
|
||||
faceDao.insert(list);
|
||||
List<Long> insertIdList = faceDao.insert(list);
|
||||
Log.d(TAG, "updateFaceData: count = " + insertIdList.size());
|
||||
List<FaceEntity> queryList = faceDao.getAllFaces();
|
||||
Log.d(TAG, "updateFaceData: queryList.size = " + queryList.size());
|
||||
}
|
||||
|
||||
public void updateFaceData2(int index, List<FaceEntity> list) {
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.sw.plate.utils.arcface;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Path;
|
||||
import android.graphics.Rect;
|
||||
@@ -215,6 +216,7 @@ public class FaceRectView extends View {
|
||||
paint.setStyle(Paint.Style.STROKE);
|
||||
paint.setStrokeWidth(faceRectThickness);
|
||||
paint.setColor(drawInfo.getColor());
|
||||
// paint.setColor(Color.parseColor("#FF0000"));
|
||||
paint.setAntiAlias(true);
|
||||
|
||||
Path mPath = new Path();
|
||||
|
||||
@@ -73,7 +73,7 @@ public interface FaceDao {
|
||||
Long insert(FaceEntity faceEntity);
|
||||
|
||||
@Insert(onConflict = OnConflictStrategy.IGNORE)
|
||||
void insert(List<FaceEntity> items);
|
||||
List<Long> insert(List<FaceEntity> items);
|
||||
|
||||
/**
|
||||
* 获取已注册的人脸数
|
||||
|
||||
@@ -586,9 +586,14 @@ public class RecognizeViewModel extends ViewModel implements RecognizeCallback {
|
||||
if (recognizeStatus != null) {
|
||||
if (recognizeStatus == RequestFeatureStatus.FAILED) {
|
||||
color = RecognizeColor.COLOR_FAILED;
|
||||
}
|
||||
if (recognizeStatus == RequestFeatureStatus.SUCCEED) {
|
||||
}else if (recognizeStatus == RequestFeatureStatus.SUCCEED) {
|
||||
color = RecognizeColor.COLOR_SUCCESS;
|
||||
} else if (recognizeStatus == RequestFeatureStatus.TO_RETRY) {
|
||||
color = RecognizeColor.COLOR_UNKNOWN;
|
||||
//需要重试
|
||||
// FaceEntity faceEntity = new FaceEntity("2",null, null);
|
||||
// CompareResult result = new CompareResult(faceEntity, 0.0f);
|
||||
// recognizeUserId.postValue(result);
|
||||
}
|
||||
}
|
||||
if (liveness != null && liveness == LivenessInfo.NOT_ALIVE) {
|
||||
|
||||
Reference in New Issue
Block a user