Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mmc-stl-vue2
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
mmc-stl-vue2
Commits
4b0a5f81
提交
4b0a5f81
authored
5月 19, 2025
作者:
温凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(ai): 新增AI配置获取功能并优化AI识别列表展示
上级
688cbd12
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
140 行增加
和
38 行删除
+140
-38
ai.js
src/components/MMCFlightControlCenter/api/modules/ai.js
+39
-15
request.js
src/components/MMCFlightControlCenter/api/request.js
+1
-2
index.vue
...anel/components/controlRight/components/viewLib/index.vue
+100
-21
index.vue
...pplications/components/player/components/aiList/index.vue
+0
-0
没有找到文件。
src/components/MMCFlightControlCenter/api/modules/ai.js
浏览文件 @
4b0a5f81
import
axios
from
"axios"
;
import
request
from
"../request"
;
// const gddaiapi = 'https://hawk.mmcuav.cn/gddaiapi';
export
default
class
AI_API
{
// 获取当前的ai配置
static
getAiconfig
(
data
)
{
return
request
({
url
:
`/admin-api/system/ai-config/getconfig`
,
method
:
"post"
,
data
,
});
}
// 人脸
static
face
(
data
){
// return axios.post("http://api.user.mmcuav.cn/aidemo/facedetect", data); // 百度的ai
return
axios
.
post
(
"https://hawk.mmcuav.cn/faceaiapi/detect/imageface"
,
data
);
static
face
(
data
)
{
return
axios
.
post
(
"https://hawk.mmcuav.cn/faceaiapi/detect/imageface"
,
data
);
}
// 车牌
static
plate
(
data
)
{
return
axios
.
post
(
"/gddaiapi/api/inflet/v1/tasks/e01d1d01-52e2-4883-a5de-0ae268764db0/predict"
,
data
);
// 共达地
// return axios.post("https://hawk.mmcuav.cn/plateaiapi/detect/image", data); // 自研
return
axios
.
post
(
"/gddaiapi/api/inflet/v1/tasks/e01d1d01-52e2-4883-a5de-0ae268764db0/predict"
,
data
);
// 共达地
}
// 人流
static
crowd
(
data
){
return
axios
.
post
(
"/gddaiapi/api/inflet/v1/tasks/18493235-4dd0-4f54-ab55-c1856ca7e3a5/predict"
,
data
);
static
crowd
(
data
)
{
return
axios
.
post
(
"/gddaiapi/api/inflet/v1/tasks/18493235-4dd0-4f54-ab55-c1856ca7e3a5/predict"
,
data
);
}
// 烟雾
static
smoke
(
data
){
return
axios
.
post
(
"/gddaiapi/api/inflet/v1/tasks/fca2eb65-8b99-4109-9f9e-a9f7fd06ac1f/predict"
,
data
);
static
smoke
(
data
)
{
return
axios
.
post
(
"/gddaiapi/api/inflet/v1/tasks/fca2eb65-8b99-4109-9f9e-a9f7fd06ac1f/predict"
,
data
);
}
// 漏油识别
static
oilLeak
(
data
){
static
oilLeak
(
data
)
{
return
axios
.
post
(
"https://hawk.mmcuav.cn/oilaiapi/detect/image"
,
data
);
}
// 裸土识别
static
bareSoil
(
data
){
return
axios
.
post
(
"/gddaiapi/api/inflet/v1/tasks/05a9d657-8339-4575-bced-04b60b74c690/predict"
,
data
);
static
bareSoil
(
data
)
{
return
axios
.
post
(
"/gddaiapi/api/inflet/v1/tasks/05a9d657-8339-4575-bced-04b60b74c690/predict"
,
data
);
}
// 其余ai
static
kbtAi
(
data
)
{
return
axios
.
post
(
"https://hawk.mmcuav.cn/detect/image"
,
data
);
}
}
\ No newline at end of file
}
src/components/MMCFlightControlCenter/api/request.js
浏览文件 @
4b0a5f81
...
...
@@ -30,7 +30,6 @@ $axios.interceptors.request.use(
config
.
headers
[
"terminal"
]
=
2
;
// 1 为管理后台 2 为前端项目
config
.
headers
[
"p-id"
]
=
projectId
;
console
.
log
(
config
,
store
.
state
,
"token信息验证"
);
return
config
;
},
(
error
)
=>
{
...
...
@@ -75,7 +74,7 @@ $axios.interceptors.response.use(
isRefreshToken
=
false
;
if
(
data
.
code
===
0
)
{
const
token
=
data
.
token
;
console
.
log
(
"store"
,
store
);
window
.
$mmc_stl
.
app
.
$store
.
commit
(
"MMCFlightControlCenter/setState"
,
{
...
...
src/components/MMCFlightControlCenter/components/uavApplications/components/controlPanel/components/controlRight/components/viewLib/index.vue
浏览文件 @
4b0a5f81
...
...
@@ -17,9 +17,9 @@
>
<el-option
v-for=
"item in aiTypeList"
:key=
"item.
i
d"
:label=
"item.
valu
e"
:value=
"item.
i
d"
:key=
"item.
typeI
d"
:label=
"item.
titl
e"
:value=
"item.
typeI
d"
></el-option>
</el-select>
<el-checkbox
...
...
@@ -262,39 +262,118 @@ export default {
isIndeterminate
:
false
,
selectAll
:
false
,
//全选
viewLibTab
:
0
,
// 视图库tab索引, 0: 视图, 1: 机载
aiType
:
0
,
// 图片类型
aiType
:
1
,
// 图片类型
aiTypeList
:
[
// 普通图片或ai图片选项
{
id
:
0
,
value
:
"全部
"
,
typeId
:
1
,
title
:
"人车识别
"
,
},
{
id
:
1
,
value
:
"人脸
识别"
,
typeId
:
2
,
title
:
"烟火
识别"
,
},
{
id
:
8
,
// id: 2,
value
:
"车牌识别"
,
typeId
:
4
,
title
:
"行人识别"
,
},
{
id
:
3
,
value
:
"人流
识别"
,
typeId
:
5
,
title
:
"机动车
识别"
,
},
{
id
:
4
,
value
:
"烟雾
识别"
,
typeId
:
6
,
title
:
"两轮车
识别"
,
},
{
id
:
5
,
value
:
"漏油
识别"
,
typeId
:
7
,
title
:
"三轮车
识别"
,
},
{
id
:
6
,
value
:
"裸土
识别"
,
typeId
:
8
,
title
:
"挖掘机
识别"
,
},
],
//视图库类型
{
typeId
:
9
,
title
:
"车牌识别"
,
},
{
typeId
:
10
,
title
:
"人脸识别"
,
},
{
typeId
:
11
,
title
:
"口罩识别"
,
},
{
typeId
:
14
,
title
:
"烟雾识别"
,
},
{
typeId
:
15
,
title
:
"火焰识别"
,
},
{
typeId
:
17
,
title
:
"占道经营"
,
},
{
typeId
:
22
,
title
:
"船舶识别"
,
},
{
typeId
:
23
,
title
:
"漏油识别"
,
},
{
typeId
:
24
,
title
:
"头盔识别"
,
},
{
typeId
:
25
,
title
:
"管线识别"
,
},
{
typeId
:
26
,
title
:
"路面裂缝"
,
},
{
typeId
:
27
,
title
:
"顶棚违建"
,
},
{
typeId
:
28
,
title
:
"门牌广告"
,
},
{
typeId
:
29
,
title
:
"井盖识别"
,
},
{
typeId
:
30
,
title
:
"搅拌车识别"
,
},
{
typeId
:
31
,
title
:
"油罐车识别"
,
},
{
typeId
:
32
,
title
:
"渣土车识别"
,
},
{
typeId
:
33
,
title
:
"排气口识别"
,
},
{
typeId
:
34
,
title
:
"人流识别"
,
},
{
title
:
"裸土识别"
,
typeId
:
35
,
},
],
//视图库类型
fileType
:
"图片"
,
//视图文件类型 0:图片;1:视频
photoList
:
[],
//资源列表对应的对象
photoListDate
:
null
,
//某日期的所有资源
...
...
src/components/MMCFlightControlCenter/components/uavApplications/components/player/components/aiList/index.vue
浏览文件 @
4b0a5f81
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论