头像视频合成

This commit is contained in:
ZLI263
2025-10-08 08:03:30 +08:00
parent 5f0d5a0daf
commit 6209b691ab
7 changed files with 586 additions and 106 deletions

View File

@@ -1,56 +1,36 @@
import request from '@/utils/request'
/**
* 人脸检测相关API
*/
/**
* 获取人脸检测列表
* @param {Object} params 查询参数
* @returns {Promise}
*/
export function getFaceDetectList(params) {
// 获取头像检测日志列表
export function getFaceDetectLogs(query) {
return request({
url: '/face-detect/logs',
method: 'get',
params
params: query
})
}
/**
* 检测图片中的人脸信息
* @param {Object} params 检测参数
* @returns {Promise}
*/
export function detectFace(params) {
console.log('detectFace API 调用参数:', params)
// 获取头像检测列表(兼容旧接口)
export function getFaceDetectList(query) {
return request({
url: '/face-detect/list',
method: 'get',
params: query
})
}
// 头像检测
export function detectFace(data) {
return request({
url: '/face-detect/detect',
method: 'post',
params
data: data
})
}
/**
* 删除人脸检测记录
* @param {String|Number} id 记录ID
* @returns {Promise}
*/
// 删除头像检测记录
export function deleteFaceDetect(id) {
return request({
url: `/face-detect/${id}`,
method: 'delete'
})
}
/**
* 获取人脸检测详情
* @param {String|Number} id 记录ID
* @returns {Promise}
*/
export function getFaceDetectDetail(id) {
return request({
url: `/face-detect/${id}`,
method: 'get'
})
}

10
src/api/tts.js Normal file
View File

@@ -0,0 +1,10 @@
import request from '@/utils/request'
// 获取TTS日志列表
export function getTtsLogList(query) {
return request({
url: '/tts/log/list',
method: 'get',
params: query
})
}

View File

@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 获取视频合成列表
export function getVideoSynthesisList(query) {
return request({
url: '/video-synthesis/synthesize',
url: '/video-synthesis/list',
method: 'get',
params: query
})
@@ -26,6 +26,15 @@ export function createVideoSynthesis(data) {
})
}
// 头像合成视频
export function synthesizeVideo(data) {
return request({
url: '/video-synthesis/synthesize',
method: 'post',
data: data
})
}
// 查询视频合成状态
export function getVideoSynthesisStatus(taskId) {
return request({