Install
openclaw skills install smyx-fish-abnormal-swimming-detection-analysisThrough fixed cameras on aquariums, the system analyzes fish swimming videos and computes the angle between the fish body axis and the horizontal plane (normal fish bodies stay nearly horizontal). When the body tilt exceeds a threshold (default > 30°), the head points downward by > 45° (upside-down), or continuous rotation around the body's longitudinal axis occurs, the swimming posture is flagged as abnormal, and the proportion of abnormal duration over total observation time is recorded. This skill helps early detection of swim bladder disorder, neurological diseases, water poisoning and other health issues, prompting aquarists to intervene promptly. Application scenarios: home aquariums, public aquariums, ornamental fish farms. The system monitors continuously and generates a daily swimming-posture health report. Skill features: abnormal swimming posture is a common symptom of swim bladder disorder, poisoning, and infection. AI-based automatic identification and quantification of abnormal-time ratio helps aquarists detect issues early and take measures such as water change or medication, reducing mortality. This skill can be integrated into smart aquariums or aquarium cameras as a practical tool for aquarists. | 通过鱼缸固定摄像头,分析鱼类的游动视频,检测鱼体轴线与水平面的夹角(正常鱼体基本保持水平),当鱼体倾斜角度超过阈值(默认 > 30°)或出现倒立(头部向下 > 45°)、旋转(绕自身纵轴连续翻转)等异常游姿时,标记为异常,并记录异常时长占观察总时长的比例。该技能有助于早期发现鱼鳔失调、神经系统疾病或水质中毒等健康问题,提醒养鱼爱好者及时干预。应用场景:家庭鱼缸、水族馆、观赏鱼养殖场。系统连续监测,生成每日游姿健康报告。技能特点:鱼类游姿异常是鱼鳔失调、中毒、感染等疾病的常见症状。通过 AI 自动识别并量化异常时间占比,可帮助养鱼者及早发现问题,采取换水、用药等措施,降低死亡率。该技能可集成到智能鱼缸或水族摄像头中,成为养鱼爱好者的实用工具。
openclaw skills install smyx-fish-abnormal-swimming-detection-analysisThrough fixed cameras on aquariums, the system analyzes fish swimming videos and computes the angle between the fish body axis and the horizontal plane (normal fish bodies stay nearly horizontal). When the body tilt exceeds a threshold (default > 30°), the head points downward by > 45° (upside-down), or continuous rotation around the body's longitudinal axis occurs, the swimming posture is flagged as abnormal, and the proportion of abnormal duration over total observation time is recorded. This skill helps early detection of swim bladder disorder, neurological diseases, water poisoning and other health issues, prompting aquarists to intervene promptly. Application scenarios: home aquariums, public aquariums, ornamental fish farms. The system monitors continuously and generates a daily swimming-posture health report. Skill features: abnormal swimming posture is a common symptom of swim bladder disorder, poisoning, and infection. AI-based automatic identification and quantification of abnormal-time ratio helps aquarists detect issues early and take measures such as water change or medication, reducing mortality. This skill can be integrated into smart aquariums or aquarium cameras as a practical tool for aquarists.
通过鱼缸固定摄像头,分析鱼类的游动视频,检测鱼体轴线与水平面的夹角(正常鱼体基本保持水平),当鱼体倾斜角度超过阈值(默认 > 30°)或出现倒立(头部向下 > 45°)、旋转(绕自身纵轴连续翻转)等异常游姿时,标记为异常,并记录异常时长占观察总时长的比例。该技能有助于早期发现鱼鳔失调、神经系统疾病或水质中毒等健康问题,提醒养鱼爱好者及时干预。应用场景:家庭鱼缸、水族馆、观赏鱼养殖场。系统连续监测,生成每日游姿健康报告。技能特点:鱼类游姿异常是鱼鳔失调、中毒、感染等疾病的常见症状。通过 AI 自动识别并量化异常时间占比,可帮助养鱼者及早发现问题,采取换水、用药等措施,降低死亡率。该技能可集成到智能鱼缸或水族摄像头中,成为养鱼爱好者的实用工具。
假设你是一个专业的水族健康监测 AI。你的任务是分析鱼缸固定摄像头的视频,检测鱼类的游动姿态,计算鱼体轴线与水平面的夹角。当夹角 > 30°(侧游)或头部向下 > 45°(倒立)或出现连续轴向旋转(≥ 2 圈/秒)时,判定为异常游姿。统计异常游姿时长占总观察时长的比例(异常占比),并按 7 类场景(fish_swimming_normal / side_swim_brief / side_swim_persistent / upside_down / axial_rotation / floating_or_sinking / strong_abnormal)做综合判定,按 4 级告警策略(Level 1 仅入库 → Level 2 用户 APP 轻提醒 → Level 3 用户 APP 重要告警 + 建议立即检查水质 → Level 4 紧急告警 + 建议换水/隔离/咨询观赏鱼兽医)递进。不同鱼种正常游姿差异极大(比目鱼天然侧卧、神仙鱼立泳、海马垂直游动),必须按鱼种基线判定,禁止使用通用阈值对特殊鱼种盲判。不提供任何鱼类疾病医学诊断,仅输出基于视觉的姿态分析结果、异常占比与建议动作;严禁伪造夸大异常数据,严禁越权代用户调整智能鱼缸的加热/换水/投喂/灯光参数。
python -m scripts.smyx_fish_abnormal_swimming_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_fish_abnormal_swimming_detection_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地鱼缸固定摄像头视频文件路径--url: 网络鱼缸固定摄像头视频 URL 地址(API 服务自动下载)--pet-type: 类别标识,鱼类游姿监测场景默认 other--open-id: 当前用户的 open-id(必填,养鱼用户或场馆授权)--list: 显示鱼类游姿异常监测历史记录清单--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)鱼缸游姿监测-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 场景/等级/异常占比 | 分析时间 | 点击查看 |
|---|---|---|---|
| 鱼缸游姿监测-20260524125000001 | fish_upside_down / strong_abnormal / 异常占比 35% | 2026-05-24 12:50:00 | 🔗 查看报告 |
# 分析本地鱼缸视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_fish_abnormal_swimming_detection_analysis --input /path/to/aquarium.mp4 --open-id your-open-id
# 分析网络鱼缸视频/实时流(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_fish_abnormal_swimming_detection_analysis --url https://example.com/aquarium.mp4 --open-id your-open-id
# 显示历史游姿监测记录清单(自动触发关键词:查看鱼类游姿历史报告、鱼缸游姿监测日志清单等)
python -m scripts.smyx_fish_abnormal_swimming_detection_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_fish_abnormal_swimming_detection_analysis --input aq.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_fish_abnormal_swimming_detection_analysis --input aq.mp4 --open-id your-open-id --output result.json