2026-05-20 21:39:12 +08:00

71 lines
1.9 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

runtime: node
entrypoint: scripts/index.cjs
timeout: 900000
dependencies:
system:
- name: node
check: "node -e \"process.exit(Number(process.versions.node.split('.')[0])>=18?0:1)\""
node:
packages:
- "@ffmpeg-installer/ffmpeg"
- "@ffprobe-installer/ffprobe"
setup:
posix: scripts/make.sh fix
win32: scripts/setup.ps1
env:
- name: FFMPEG_PATH
required: false
description: 可选指定可运行的ffmpeg二进制路径本机PATH中的ffmpeg不可用时使用
- name: FFPROBE_PATH
required: false
description: 可选指定可运行的ffprobe二进制路径本机PATH中的ffprobe不可用时使用
- name: VEHICLE_SCRATCH_WORKSPACE_ROOT
required: false
description: 共享环车检测 workspace 根目录;默认 RZYX_AI_DATA_DIR/workspace/vehicle-scratch-inspection
- name: RZYX_AI_DATA_DIR
required: false
description: AIflow dataDir由宿主注入
- name: RZYX_AI_WORKSPACE_ROOT
required: false
description: AIflow workspace根目录未包含vehicle-scratch-inspection时会自动追加子目录
- name: RZYX_AI_UPLOAD_ROOT
required: false
description: /upload 路径对应的本地 uploads 根目录
interface:
input:
videoUrl:
type: string
required: true
description: 视频本地路径、/upload 路径或可访问 URL
fps:
type: number
required: false
default: "5"
description: 每秒抽取帧数
quality:
type: number
required: false
default: "90"
description: JPEG质量1-100
taskId:
type: string
required: false
description: 共享任务ID不传自动生成
output:
success:
type: boolean
taskId:
type: string
workspacePath:
type: string
frameCount:
type: number
videoInfo:
type: object
error:
type: string