|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private static BDFaceImageInstance rgbInstance =null; | 
|---|
|  |  |  | private LivenessModel livenessModel; | 
|---|
|  |  |  | private String groupId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 0:管理员,1:用户 | 
|---|
|  |  |  | * @param groupId | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public void setGroupId(String groupId){ | 
|---|
|  |  |  | if(livenessModel!=null){ | 
|---|
|  |  |  | livenessModel.setGroupId(groupId); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.groupId = groupId; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 检测-活体-特征-人脸检索流程 | 
|---|
|  |  |  | 
|---|
|  |  |  | //System.out.println("==isOk==>匹配到数量"+featureResult.size()); | 
|---|
|  |  |  | User user = null; | 
|---|
|  |  |  | Feature topFeature = null; | 
|---|
|  |  |  | if(TextUtils.isEmpty(livenessModel.getGroupId())){ | 
|---|
|  |  |  | if(TextUtils.isEmpty(groupId)){ | 
|---|
|  |  |  | //为空,需要排序,优先取会员 | 
|---|
|  |  |  | for(Feature feat:featureResult) { | 
|---|
|  |  |  | threholdScore = bdFaceCheckConfig.scoreThreshold; | 
|---|
|  |  |  | 
|---|
|  |  |  | //System.out.println("==isOk==>50"); | 
|---|
|  |  |  | // 当前featureEntity 只有id+feature 索引,在数据库中查到完整信息 | 
|---|
|  |  |  | User userOld = FaceApi.getInstance().getUserListById(feat.getId()); | 
|---|
|  |  |  | if(livenessModel.getGroupId().equals(userOld.getGroupId())){ | 
|---|
|  |  |  | if(groupId.equals(userOld.getGroupId())){ | 
|---|
|  |  |  | user = userOld; | 
|---|
|  |  |  | topFeature = feat; | 
|---|
|  |  |  | break; | 
|---|