bug修复
This commit is contained in:
parent
22e8d2e156
commit
e9a08b8288
@ -62,10 +62,12 @@ public class UfaceRecognitionController {
|
|||||||
String fileUrl = MapUtils.getString(map, "fileUrl");
|
String fileUrl = MapUtils.getString(map, "fileUrl");
|
||||||
if (StringUtils.isNotEmpty(fileUrl)) {
|
if (StringUtils.isNotEmpty(fileUrl)) {
|
||||||
File file = new File(basePath, fileUrl);
|
File file = new File(basePath, fileUrl);
|
||||||
|
log.info("basePath:{},fileUrl:{}", basePath, fileUrl);
|
||||||
ImageInfo imageInfo = getRGBData(file);
|
ImageInfo imageInfo = getRGBData(file);
|
||||||
List<FaceInfo> faceInfoList = new ArrayList<FaceInfo>();
|
List<FaceInfo> faceInfoList = new ArrayList<FaceInfo>();
|
||||||
int errorCode = faceEngine.detectFaces(imageInfo.getImageData(), imageInfo.getWidth(), imageInfo.getHeight(), imageInfo.getImageFormat(), faceInfoList);
|
int errorCode = faceEngine.detectFaces(imageInfo.getImageData(), imageInfo.getWidth(), imageInfo.getHeight(), imageInfo.getImageFormat(), faceInfoList);
|
||||||
if (faceInfoList != null && faceInfoList.size() > 0) {
|
log.info("errorCode:{}", errorCode);
|
||||||
|
if (faceInfoList.size() > 0) {
|
||||||
if (faceInfoList.size() > 1) {
|
if (faceInfoList.size() > 1) {
|
||||||
FileOperation.deleteFile(file);
|
FileOperation.deleteFile(file);
|
||||||
data.put("checkType", "0");
|
data.put("checkType", "0");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user