master
coco1986509808 2023-04-21 16:56:05 +08:00
parent 604eb68005
commit ccc03b8cb1
6 changed files with 14 additions and 15 deletions

View File

@ -17,8 +17,9 @@ public class CompareFaceList {
@ApiModelProperty(value = "时间") @ApiModelProperty(value = "时间")
private String time; private String time;
@ApiModelProperty(value = "视频解帧大图地址")
@ApiModelProperty(value = "原始人脸地址") private String jzphoto;
@ApiModelProperty(value = "原始待人脸地址")
private String cphoto; private String cphoto;
@ApiModelProperty(value = "比对最相似的人脸地址") @ApiModelProperty(value = "比对最相似的人脸地址")
private String rphoto; private String rphoto;
@ -26,12 +27,6 @@ public class CompareFaceList {
private double xsd; private double xsd;
@ApiModelProperty(value = "姓名") @ApiModelProperty(value = "姓名")
private String name; private String name;
// @ApiModelProperty(value = "性别")
// private String sex;
// @ApiModelProperty(value = "身份证号码")
// private String idCard;
// @ApiModelProperty(value = "年龄")
// private Integer age;
@ApiModelProperty(value = "库名称") @ApiModelProperty(value = "库名称")
private String libName; private String libName;
// @ApiModelProperty(value = "库id") // @ApiModelProperty(value = "库id")

View File

@ -12,6 +12,6 @@ import lombok.NoArgsConstructor;
@ApiModel(value = "人脸库11比对返回", description = "人脸检索") @ApiModel(value = "人脸库11比对返回", description = "人脸检索")
public class FaceResEntity { public class FaceResEntity {
private String cphoto; private String cphoto;
//private String rphoto; private String jzphoto;
private String time; private String time;
} }

View File

@ -74,7 +74,7 @@ public class IndexContral extends CommonResult{
//正常运行天数 //正常运行天数
Long a=nowdate.getTime(); Long a=nowdate.getTime();
Long b=InitStartDateConfig.initDate.getTime(); Long b=InitStartDateConfig.initDate.getTime();
System.out.println(a-b); System.out.println("a-b"+ (a-b));
Integer daysOfOperation=(int)((nowdate.getTime()-InitStartDateConfig.initDate.getTime())/(3600000*24)+1); Integer daysOfOperation=(int)((nowdate.getTime()-InitStartDateConfig.initDate.getTime())/(3600000*24)+1);
//人像库数量 //人像库数量
Integer libNumber=0; Integer libNumber=0;
@ -93,6 +93,7 @@ public class IndexContral extends CommonResult{
// faceLibrary.setFactoryType("-1"); // faceLibrary.setFactoryType("-1");
queryWrapper.setEntity(faceLibrary); queryWrapper.setEntity(faceLibrary);
queryWrapper.ne("factory_type","-1"); queryWrapper.ne("factory_type","-1");
System.out.println("人像库sql");
libNumber=iFaceLibraryService.getBaseMapper().selectCount(queryWrapper); libNumber=iFaceLibraryService.getBaseMapper().selectCount(queryWrapper);
}catch (Exception e){} }catch (Exception e){}

View File

@ -1,6 +1,7 @@
package com.dkha.server.controllers; package com.dkha.server.controllers;
import java.io.IOException; import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
@ -38,6 +39,7 @@ import com.dkha.common.modules.vo.ReturnVO;
import com.dkha.common.util.JsonUtil; import com.dkha.common.util.JsonUtil;
import com.dkha.common.modules.vo.CompareFaceList; import com.dkha.common.modules.vo.CompareFaceList;
import com.google.gson.Gson; import com.google.gson.Gson;
import java.util.Date;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -70,7 +72,8 @@ public class WebSocketContral {
{ {
redisUtils =applicationContext.getBean(RedisUtils.class); redisUtils =applicationContext.getBean(RedisUtils.class);
this.session=session; this.session=session;
System.out.println("session信息"+ session); SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
System.out.println("session信息"+ session + " 时间:"+formatter.format(new Date()));
if(myMap.containsKey(session.getId())) if(myMap.containsKey(session.getId()))
{ {
try { try {
@ -100,7 +103,7 @@ public class WebSocketContral {
// TimerData.tokens.put(session.getId(),token); // TimerData.tokens.put(session.getId(),token);
webSocketSet.add(this); webSocketSet.add(this);
myMap.put(session.getId(), this); myMap.put(session.getId(), this);
// log.info(session.getId()+"【websocket消息】有新的连接总数{},{},{}",webSocketSet.size(),myMap.size(),token); log.info(session.getId()+"【websocket消息】有新的连接总数{},{}",webSocketSet.size(),myMap.size());
} }
@OnClose @OnClose
@ -112,7 +115,7 @@ public class WebSocketContral {
// } // }
myMap.remove(this.session.getId()); myMap.remove(this.session.getId());
webSocketSet.remove(this); webSocketSet.remove(this);
// log.info("关闭成功{},{},{}",webSocketSet.size(),myMap.size(),TimerData.bayonetMap.size()); log.info("关闭成功{},{}",webSocketSet.size(),myMap.size());
} }
@OnMessage @OnMessage
public void onMessage(String message) public void onMessage(String message)
@ -123,7 +126,7 @@ public class WebSocketContral {
if(UtilValidate.isNotEmpty(message)) if(UtilValidate.isNotEmpty(message))
{ {
ReturnVO returnVO=gson.fromJson(message,ReturnVO.class); ReturnVO returnVO=gson.fromJson(message,ReturnVO.class);
System.out.println(message); //System.out.println(message);
if(returnVO.getMessage().equals("okpro")) { if(returnVO.getMessage().equals("okpro")) {
if (UtilValidate.isNotEmpty(returnVO.getData())) { if (UtilValidate.isNotEmpty(returnVO.getData())) {
// List<FaceResEntity> facelist =gson.fromJson(gson.toJson(returnVO.getData()),List<FaceResEntity>.class); // List<FaceResEntity> facelist =gson.fromJson(gson.toJson(returnVO.getData()),List<FaceResEntity>.class);

View File

@ -50,7 +50,6 @@ public class FaceLibrary implements Serializable {
private String factoryTypeName; private String factoryTypeName;
@ApiModelProperty(value = "是否有效 Y有效 N无效") @ApiModelProperty(value = "是否有效 Y有效 N无效")
private String isValid; private String isValid;
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")

View File

@ -92,6 +92,7 @@ mybatis-plus:
cache-enabled: false cache-enabled: false
call-setters-on-nulls: true call-setters-on-nulls: true
jdbc-type-for-null: 'null' jdbc-type-for-null: 'null'
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# 用于控制swagger是否显示 # 用于控制swagger是否显示
swagger: swagger: