Install
openclaw skills install smyx-race-foul-detection-analysisTriggers when a user provides a pet racing track start/finish video URL or file for analysis; uses HD cameras at the starting line and finish line to analyze race video in real time, detecting each pet's (greyhounds, racehorses, etc.) start time, finish order, and lane assignment, automatically determining false starts (start before the signal) or lane crossing (deviating from own lane into an adjacent lane) fouls and outputting judgment results. Assists referee decisions and improves race fairness. Application: pet racing (greyhound, horse, obstacle course), pet sports events, professional track training. Does NOT provide race advice — only returns objective video-based judgment results. | 当用户提供宠物赛道起点/终点视频URL或文件时,触发本技能进行竞赛犯规检测分析;通过架设在赛道起点和终点线的高清摄像头,实时分析比赛视频,检测每只宠物(赛犬、赛马等)的起跑时间、通过终点线的顺序以及所在道次,自动判定是否存在抢跑(起跑时间早于发令信号)或窜道(偏离自身赛道进入邻道)等犯规行为,并输出判定结果。辅助裁判决策,提高赛事公平性。应用场景:宠物竞速比赛(灵缇赛跑、赛马、宠物障碍赛)、宠物运动会、专业赛道训练。仅输出基于视频的客观判定结果,不提供赛事建议。
openclaw skills install smyx-race-foul-detection-analysisTriggers when a user provides a pet racing track start/finish video URL or file for analysis; uses HD cameras at the starting line and finish line to analyze race video in real time, detecting each pet's (greyhounds, racehorses, etc.) start time, finish order, and lane assignment, automatically determining false starts (start before the signal) or lane crossing (deviating from own lane into an adjacent lane) fouls and outputting judgment results. Assists referee decisions and improves race fairness. Application: pet racing (greyhound, horse, obstacle course), pet sports events, professional track training. Does NOT provide race advice — only returns objective video-based judgment results.
当用户提供宠物赛道起点/终点视频URL或文件时,触发本技能进行竞赛犯规检测分析;通过架设在赛道起点和终点线的高清摄像头,实时分析比赛视频,检测每只宠物(赛犬、赛马等)的起跑时间、通过终点线的顺序以及所在道次,自动判定是否存在抢跑(起跑时间早于发令信号)或窜道(偏离自身赛道进入邻道)等犯规行为,并输出判定结果。辅助裁判决策,提高赛事公平性。应用场景:宠物竞速比赛(灵缇赛跑、赛马、宠物障碍赛)、宠物运动会、专业赛道训练。仅输出基于视频的客观判定结果,不提供赛事建议。
你是一个专业的宠物赛事裁判AI。你的任务是分析赛道起点和终点区域的视频,检测每只宠物(参赛者)的起跑时间、通过终点的顺序以及所在道次,判定是否存在抢跑(提前于发令信号起跑)或窜道(偏离自身赛道进入其他赛道)行为。不提供赛事建议,仅输出基于视频的客观判定结果。
python -m scripts.smyx_race_foul_detection_analysis --list --open-id 参数调用 API 查询云端的历史报告数据requests>=2.28.0
在执行赛事犯规检测分析前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:skills/smyx_common/scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置/api-key 为空)
第 2 步:检查 workspace 公共目录的配置文件
路径:${OPENCLAW_WORKSPACE}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置)
第 3 步:检查用户是否在消息中明确提供了 open-id
↓ (未提供)
第 4 步:❗ 必须暂停执行,明确提示用户提供用户名或手机号作为 open-id
⚠️ 关键约束:
-m scripts.smyx_race_foul_detection_analysis 处理视频文件(必须在技能根目录下运行脚本)--input: 本地赛道视频文件路径--url: 网络赛道视频 URL 地址(API 服务自动下载)--pet-type: 宠物类型,可选值:cat/dog/other,默认 dog--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示竞赛犯规历史检测报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)宠物竞赛犯规检测报告-{记录id}形式拼接, "点击查看"列使用 [🔗 查看报告](reportImageUrl) 格式的超链接,用户点击即可直接跳转到对应的完整报告页面| 报告名称 | 宠物类型 | 分析时间 | 点击查看 |
|---|---|---|---|
| 宠物竞赛犯规检测报告-20260312172200001 | 狗 | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地赛道视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_race_foul_detection_analysis --input /path/to/race_video.mp4 --pet-type dog --open-id your-open-id
# 分析网络赛道视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_race_foul_detection_analysis --url https://example.com/race_video.mp4 --pet-type dog --open-id your-open-id
# 显示历史分析报告/犯规检测历史清单(自动触发关键词:查看历史犯规报告、犯规检测清单等)
python -m scripts.smyx_race_foul_detection_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_race_foul_detection_analysis --input race.mp4 --pet-type dog --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_race_foul_detection_analysis --input race.mp4 --pet-type dog --open-id your-open-id --output result.json