将检测任务迁移python

This commit is contained in:
2025-09-30 14:23:33 +08:00
parent 3fe5f8083d
commit 39d39a7a24
69 changed files with 7921 additions and 1836 deletions

View File

@@ -101,7 +101,7 @@ public class CommonController
// persist to v_minio_object
VMinioObject record = new VMinioObject();
record.setObjectName(fileName);
record.setUrl(url);
record.setObjectUrl(url);
record.setOriginalName(file.getOriginalFilename());
try { record.setCreateBy(SecurityUtils.getUsername()); } catch (Exception ignored) {}
vMinioObjectService.insert(record);
@@ -158,7 +158,7 @@ public class CommonController
// persist each to v_minio_object
VMinioObject record = new VMinioObject();
record.setObjectName(fileName);
record.setUrl(url);
record.setObjectUrl(url);
record.setOriginalName(file.getOriginalFilename());
try { record.setCreateBy(SecurityUtils.getUsername()); } catch (Exception ignored) {}
vMinioObjectService.insert(record);

View File

@@ -156,10 +156,6 @@ mediasServer:
# 无人拉流观看持续多久自动关闭1分钟
noClientsDuration: 60000
# 虹软sdk
arcFace:
appId: '替换成你的appId'
sdkKey: '替换成你的sdkKey'
# 视频分析配置
video:
@@ -174,3 +170,17 @@ video:
transport: tcp
# 重试次数
retryCount: 3
# Spring Boot Actuator配置
management:
endpoints:
web:
exposure:
include: health,info
base-path: /actuator
endpoint:
health:
show-details: when-authorized
health:
defaults:
enabled: true

View File

@@ -1,5 +1,7 @@
[
{"name":"garbage","path":"libs/models/garbage","size":[640,640],"backend":"OpenCV"},
{"name":"smoke","path":"libs/models/smoke","size":[640,640],"backend":"OpenCV"}
{
"name": "garbage",
"pythonModelName": "garbage_detector",
"pythonApiUrl": "http://localhost:8000/api/detect/file"
}
]