Install
openclaw skills install smyx-fish-flashing-scraping-detection-analysisThrough fixed aquarium cameras, the system analyzes fish behavior videos and detects abnormal frictional actions between fish bodies and tank walls, substrate, or rockwork — 'flashing' (fish flipping sideways and brushing tank walls rapidly) and 'scraping' (fish belly/flank rubbing on substrate). The system counts abnormal contact frequency per minute. When the frequency exceeds a threshold (default 5/min) AND persists for over 10 seconds, the system outputs an 'ectoparasite risk warning', prompting the user to check for parasitic infections (such as ich, trichodina, gyrodactylus) or skin irritation. Application scenarios: home aquariums, public aquariums, quarantine tanks, aquaculture ponds. The system monitors in real time and pushes alerts when frequent flashing/scraping is detected. Skill features: white-spot disease, trichodiniasis and other ectoparasitic conditions only show flashing/scraping in their EARLIEST stage. Timely intervention can avoid mass mortality. AI-based real-time monitoring helps aquarists discover and treat early, reducing losses. This skill can be integrated into smart aquarium cameras or fish disease early-warning systems. | 通过鱼缸固定摄像头,分析鱼类的行为视频,检测鱼体与缸壁、底砂、造景石等物体的异常摩擦动作(擦缸:鱼体侧身快速蹭过缸壁;蹭底:鱼体腹部或侧面贴底砂摩擦)。统计每分钟的异常接触频次,当频次超过阈值(默认 5 次/分钟)且持续时间超过 10 秒时,输出'外寄风险提示',提醒用户检查是否有寄生虫(如小瓜虫、车轮虫、三代虫)感染或皮肤不适。应用场景:家庭鱼缸、水族馆、检疫缸、养殖池。系统实时监测,当发现频繁擦缸/蹭底时推送预警。技能特点:白点病、车轮虫病等外寄疾病在早期仅表现为擦缸、蹭底,若及时干预可避免大规模死亡。通过 AI 实时监测并提醒,可帮助养鱼者早发现、早治疗,降低损失。该技能可集成到智能鱼缸摄像头或鱼病预警系统中。
openclaw skills install smyx-fish-flashing-scraping-detection-analysisThrough fixed aquarium cameras, the system analyzes fish behavior videos and detects abnormal frictional actions between fish bodies and tank walls, substrate, or rockwork — 'flashing' (fish flipping sideways and brushing tank walls rapidly) and 'scraping' (fish belly/flank rubbing on substrate). The system counts abnormal contact frequency per minute. When the frequency exceeds a threshold (default 5/min) AND persists for over 10 seconds, the system outputs an 'ectoparasite risk warning', prompting the user to check for parasitic infections (such as ich, trichodina, gyrodactylus) or skin irritation. Application scenarios: home aquariums, public aquariums, quarantine tanks, aquaculture ponds. The system monitors in real time and pushes alerts when frequent flashing/scraping is detected. Skill features: white-spot disease, trichodiniasis and other ectoparasitic conditions only show flashing/scraping in their EARLIEST stage. Timely intervention can avoid mass mortality. AI-based real-time monitoring helps aquarists discover and treat early, reducing losses. This skill can be integrated into smart aquarium cameras or fish disease early-warning systems.
通过鱼缸固定摄像头,分析鱼类的行为视频,检测鱼体与缸壁、底砂、造景石等物体的异常摩擦动作(擦缸:鱼体侧身快速蹭过缸壁;蹭底:鱼体腹部或侧面贴底砂摩擦)。统计每分钟的异常接触频次,当频次超过阈值(默认 5 次/分钟)且持续时间超过 10 秒时,输出'外寄风险提示',提醒用户检查是否有寄生虫(如小瓜虫、车轮虫、三代虫)感染或皮肤不适。应用场景:家庭鱼缸、水族馆、检疫缸、养殖池。系统实时监测,当发现频繁擦缸/蹭底时推送预警。技能特点:白点病、车轮虫病等外寄疾病在早期仅表现为擦缸、蹭底,若及时干预可避免大规模死亡。通过 AI 实时监测并提醒,可帮助养鱼者早发现、早治疗,降低损失。该技能可集成到智能鱼缸摄像头或鱼病预警系统中。
假设你是一个专业的水族寄生虫预警 AI。你的任务是分析鱼缸固定摄像头的视频(覆盖缸壁 + 底砂 + 造景石全景,分辨率 ≥ 720p,帧率 ≥ 25 FPS——擦缸是瞬时高速动作 < 0.5s 必须高帧率),检测两类异常摩擦行为:① 擦缸(Flashing):鱼体侧身翻转 60-90 度快速蹭过缸壁,爆发速度高于游动 2-3 倍;② 蹭底(Scraping):鱼体腹部 / 侧面 / 鳃盖贴底砂或造景石摩擦,常在同一位置反复蹭。统计每分钟摩擦事件数**(擦缸 + 蹭底)+ 持续时长:当 ≥ 5 次/分钟且持续 ≥ 10 秒时触发预警门槛。按 7 类综合场景判定(friction_normal / friction_low_baseline / friction_warning_mild / friction_warning_severe / friction_whole_tank_outbreak / friction_courtship_or_substrate_species / friction_signal_unreliable),按 4 级告警策略递进(Level 1 不提示 → Level 2 立即近距离观察体表+鳃部+食欲 → Level 3 紧急体表+鳃部+鳍条全面观察+测水质+准备隔离检疫缸+联系兽医 → Level 4 🚨 最高紧急+所有联系人+全缸隔离+测水质五项+联系专业兽医现场镜检)。鱼种特异性必须按基线判定:底栖鱼种(鼠鱼 / 异型鱼 / 清道夫 / 部分鳉鱼)天然贴底觅食、繁殖期慈鲷类(七彩 / 鹦鹉 / 神仙鱼)贴底/蹭石产卵预备 → 严禁通用阈值盲判底栖鱼为外寄。必须考虑生理性上下文(投喂窗口争食撞缸 / 换水后短暂应激 / 水温骤变 / 新鱼入缸适应期),避免误报。光照不足 / 跟踪率 < 80% / 视野盲区 / 帧率 < 25 FPS → 必须返回 friction_signal_unreliable。🚨 严禁做"小瓜虫病 / 白点病 / 车轮虫病 / 三代虫病 / 指环虫病 / 锚头蚤病"等具体寄生虫病确诊(外寄虫体鉴定必须显微镜镜检,AI 视觉仅可输出"行为预兆/外寄风险");🚨 严禁输出具体药物名称、剂量、给药方案(特别严禁推荐甲硝唑、敌百虫、硫酸铜、孔雀石绿、戊二醛、福尔马林、亚甲基蓝等任何抗寄生虫药剂);🚨 严禁输出"升温至 30℃ 治疗白点病""加盐 0.3%"等具体疗法(剂量必须由兽医现场判断);严禁伪造夸大摩擦频次/持续时长;严禁越权代用户启停加热棒/换水/投药/灯光/喂食器(仅建议)。**
python -m scripts.smyx_fish_flashing_scraping_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_flashing_scraping_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: 结果输出文件路径(可选)friction_signal_unreliable 并建议补光/调整摄像头,禁止给出不可靠的预警鱼缸外寄预警-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 摩擦频次/持续时长/场景 | 分析时间 | 点击查看 |
|---|---|---|---|
| 鱼缸外寄预警-20260525022400001 | 9 次/分 / 45s / friction_warning_severe | 2026-05-25 02:24:00 | 🔗 查看报告 |
# 分析本地鱼缸固定摄像头视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_fish_flashing_scraping_detection_analysis --input /path/to/tank.mp4 --open-id your-open-id
# 分析网络鱼缸固定摄像头视频/实时流(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_fish_flashing_scraping_detection_analysis --url https://example.com/tank.mp4 --open-id your-open-id
# 显示历史外寄预警记录清单(自动触发关键词:查看鱼缸擦缸历史报告、外寄预警日志清单等)
python -m scripts.smyx_fish_flashing_scraping_detection_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_fish_flashing_scraping_detection_analysis --input tank.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_fish_flashing_scraping_detection_analysis --input tank.mp4 --open-id your-open-id --output result.json