智能标注应用层代码 提交
This commit is contained in:
parent
f612b15f62
commit
62c815ab35
|
|
@ -66,7 +66,7 @@ public class IntelligentAnnotationController {
|
|||
try {
|
||||
IntelligentAnnotationServiceEntity service = intelligentAnnotationService.getAIAnnotationServiceById(task.getIntelligentAnnotationServiceId());
|
||||
if (ObjectUtils.isEmpty(service)) {
|
||||
return AjaxResult.error("未找到指定的AI服务");
|
||||
return AjaxResult.error("未找到指定的智能标注服务配置");
|
||||
}
|
||||
//获取标注任务id和标签信息
|
||||
AnnotationTaskEntity taskInfo = annotationTaskService.getTaskInfo(task.getTaskId());
|
||||
|
|
|
|||
|
|
@ -92,7 +92,6 @@ public class IntelligentAnnotationServiceImpl implements IntelligentAnnotationSe
|
|||
|
||||
Long fileId = findFileIdByFileUrl(fileList, imagePath);
|
||||
if (!ObjectUtils.isEmpty(fileId)) {
|
||||
//TODO 将文件的标注信息存数据库
|
||||
AnnotationTaskAnnotatorEntity annotationTaskAnnotatorEntity = new AnnotationTaskAnnotatorEntity();
|
||||
annotationTaskAnnotatorEntity.setFileId(fileId);
|
||||
annotationTaskAnnotatorEntity.setTaskId(taskInfo.getTaskId());
|
||||
|
|
|
|||
|
|
@ -21,13 +21,13 @@ spring:
|
|||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: db93cb6f-e0b3-4f24-a5fc-72f5562f5676
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: f648524d-0a7b-449e-8f92-64e05236fd51
|
||||
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: db93cb6f-e0b3-4f24-a5fc-72f5562f5676
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: f648524d-0a7b-449e-8f92-64e05236fd51
|
||||
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
|
|
|
|||
Loading…
Reference in New Issue