将检测任务迁移python
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user