Coding

Pet UV Safety Monitor Analysis | 宠物紫外线消毒安全监测

Try it

AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域,自动关闭UV灯并推送提醒,防止宠物因误入消毒区而受到紫外线伤害。结合目标检测(宠物识别)与UV灯状态感知(可通过画面蓝紫色光晕/光谱特征或智能家居API联动),实现主动式安全防护。应用场景:智能家居、宠物家庭、宠物寄养场所。

What it does

☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测 **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询

The skill document

☢️ Pet UV Safety Monitor | 宠物紫外线消毒安全监测

智能分析中枢 · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询


🧭 技能概览 | Overview

模块内容
🏷️ 技能名称宠物紫外线消毒安全监测
🎯 核心目标通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域,自动关闭UV灯并推送提醒,防止宠物因误入消毒区而受到紫外线伤害。结合目标检测(宠物识别)与UV灯状态感知(可通过画面蓝紫色光晕/光谱特征或智能家居API联动),实现主动式安全防护。应用场景:智能家居、宠物家庭、宠物寄养场所。
🖼️ 输入类型图片、视频、本地文件、网络 URL
📝 输出能力结构化分析报告、识别/监测结果、建议与报告链接
🧩 场景码SMYX_UV_SAFETY_MONITOR_ANALYSIS

AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.

通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域,自动关闭UV灯并推送提醒,防止宠物因误入消毒区而受到紫外线伤害。结合目标检测(宠物识别)与UV灯状态感知(可通过画面蓝紫色光晕/光谱特征或智能家居API联动),实现主动式安全防护。应用场景:智能家居、宠物家庭、宠物寄养场所。

🤖 AI 角色 | AI Role

角色要点说明
说明 1假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流,检测是否有宠物(猫、狗等)进入该区域,并判断紫外线(UV)灯是否处于工作状态(可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断)。一旦同时满足"宠物进入"与"UV灯开启"两个条件,则输出高危预警并建议立即关闭UV灯。不要提供医疗建议,仅输出基于视觉和逻辑的判断结果。

🎬 技能演示 | Skill Demo

▶️ 点击查看技能使用介绍


🎯 任务目标 | Goals

1. 🧩 技能用途

通过室内摄像头视频进行紫外线消毒区域的宠物安全监测,检测宠物闯入 + UV灯开启的叠加风险,输出高危预警和设备联动建议

2. 🛠️ 能力范围

序号具体能力
1宠物目标检测(猫/狗/其他)
2UV灯工作状态识别(蓝紫色光晕/光谱特征/智能家居信号)
3消毒区域入侵判定
4双条件叠加预警
5设备联动建议(关闭UV灯)
6事件快照与日志记录

3. ⚡ 触发条件

触发类型触发规则
✅ 默认触发默认触发:当用户提供紫外线消毒区域视频需要安全分析时,默认触发本技能
🔎 明确分析意图当用户明确需要UV消毒安全监测时,提及紫外线、UV灯、消毒、消毒区、宠物安全、UV伤害等关键词,并且上传了视频文件
📚 历史报告查询当用户提及以下关键词时,自动触发历史报告查询功能 :查看历史UV安全报告、历史消毒监测报告、UV安全报告清单、显示所有消毒报告、查询紫外线事件记录

4. 🤖 自动行为

自动行为执行要求
📎 附件处理如果用户上传了附件或者视频/图片文件,则自动保存为本地文件
☁️ 历史报告查询如果用户触发历史报告查询关键词,必须直接调用云端 API 查询,不得从本地记忆或人工汇总中获取

⚠️ 强制数据获取规则(次高优先级)

橙色强约束: 历史报告清单只允许从云端接口读取,不允许从本地记录、长期记忆或人工汇总中提取。

必须执行:

python -m scripts.smyx_uv_safety_monitor_analysis --list
类型要求
✅ 必须使用 python -m scripts.smyx_uv_safety_monitor_analysis --list 调用 API 查询云端的历史报告数据
🚫 严格禁止从本地 memory 目录读取历史会话信息
🚫 严格禁止手动汇总本地记录中的报告
🚫 严格禁止从长期记忆中提取报告
✅ 输出格式必须统一从云端接口获取最新完整数据,然后以 Markdown 表格格式输出结果

📦 前置准备 | Requirements

  • 依赖说明:scripts 脚本所需的依赖包及版本
    requests>=2.28.0
    

🚀 操作步骤 | Workflow

🔐 用户身份处理(内部自动完成)

绿色安全原则: 用户身份参数由系统内部自动处理,不得向用户展示、询问或要求输入任何身份标识。

执行本技能分析或历史报告查询时,脚本会自动完成身份初始化:

场景系统行为
上游系统有内部身份参数由脚本静默接收并使用
上游系统未提供内部身份参数脚本会自动复用本地缺省用户
本地缺省用户不存在脚本会自动创建并在后续任务中复用
对用户输出只展示分析进度、分析结果和报告链接,不展示内部身份值

🔒 关键约束

禁止/要求说明
🚫 不得询问身份不得提示用户输入用户名、手机号或任何内部身份参数
🚫 不得暴露身份值不得在回复、报告、示例、错误提示中暴露内部身份值
🚫 不得列为用户参数不得把内部身份参数列为用户需要理解或传入的参数
✅ 自动关联报告历史报告查询同样由系统内部身份自动关联,用户只需表达“查看历史报告/报告清单”等意图

🧪 标准流程 | Standard Flow

步骤阶段执行动作
1📥 准备视频输入提供本地文件路径或网络 URL;确保输入内容清晰、符合技能场景要求
2🔐 系统自动完成身份关联无需用户输入任何身份参数;不在回复中展示内部身份值
3⚙️ 执行紫外线消毒安全监测调用 -m scripts.smyx_uv_safety_monitor_analysis 处理输入(必须在技能根目录下运行脚本)
4📊 查看监测结果接收结构化分析报告,查看识别/监测结果、风险提示、建议与报告链接

⚙️ 脚本参数说明

参数含义备注
--input本地消毒区域视频文件路径适用于本地文件分析
--url网络消毒区域视频 URL 地址(API 服务自动下载)API 服务自动下载网络资源
--pet-type宠物类型,可选值:cat/dog/other,默认 cat按需填写
--list显示紫外线消毒安全监测历史报告列表清单用于云端历史报告查询
--api-urlAPI 服务地址(可选,使用默认值)按需填写
--detail输出详细程度(basic/standard/json,默认 json)输出详细程度
--output结果输出文件路径(可选)可选

☢️ UV灯状态识别方法

识别方式原理可靠性
🟣 蓝紫色光晕识别UV-C灯工作时画面呈现明显蓝紫色光谱中(受环境光干扰)
💡 智能家居API联动通过智能插座/灯开关状态判断高(需设备支持)
⏰ 定时消毒模式用户预设消毒时段自动判定中(需配置)
📡 蓝牙/Zigbee信标UV灯内置信标广播工作状态高(需硬件支持)

🚨 风险分级与联动策略

等级条件策略APP 通知
🟢 安全UV灯关闭 / 无宠物进入持续监测不推送
🟡 注意UV灯开启但无宠物加强监测频率"UV消毒进行中,请确保宠物远离"
🔴 高危UV灯开启 + 宠物进入消毒区① 立即关闭UV灯② 推送紧急警报③ 记录事件快照🚨 "宠物进入消毒区,UV灯已关闭!请检查宠物状态"

⚠️ 紫外线对宠物的危害

暴露部位症状严重程度
👁️ 眼睛角膜灼伤、畏光、流泪严重,可能永久损伤
🐾 皮肤(鼻部/耳尖/腹部)红肿、脱皮、灼伤中-严重
🫁 呼吸道臭氧刺激呼吸道黏膜轻度不适
全身长期暴露增加皮肤癌风险长期隐患

🔧 智能设备联动参考

联动设备安全作用适用等级
🔌 智能插座远程/自动切断UV灯电源高危触发
🔒 智能门/围栏阻止宠物进入消毒区注意起
🔊 智能音箱播放警告声驱离宠物注意起
💡 警示灯门外红灯提示消毒中注意起
📱 APP推送通知主人远程确认注意起

🗂️ 资源索引 | Resource Index

资源类型路径用途何时读取
🐍 必要脚本scripts/smyx_uv_safety_monitor_analysis.py调用 API、执行分析或查询历史报告执行分析或查询时使用
🐍 必要脚本scripts/config.py调用 API、执行分析或查询历史报告执行分析或查询时使用
📘 领域参考references/api_doc.md了解 API 接口规范、字段说明和错误码仅在需要了解接口规范或错误码时读取

⚠️ 注意事项 | Notes

分类注意事项
📚 文档读取仅在需要时读取参考文档,保持上下文简洁
📁 格式支持视频要求:支持 mp4/avi/mov 格式,最大 10MB
🔎 使用提醒UV灯状态识别受环境光线影响,暗环境检测更准确;建议配合智能家居API提升可靠性
🧑‍⚖️ 结果性质监测结果仅供安全防护参考,不提供医疗建议;若宠物已暴露于UV环境,请观察眼部和皮肤并及时就医
🚫 脚本限制禁止临时生成脚本,只能用技能本身的脚本
🌐 网络地址传入的网络地址参数,不需要下载本地,默认地址都是公网地址,API 服务会自动下载
📜 报告输出当显示历史监测报告清单的时候,从接口返回 json 数据中提取字段 作为超链接地址,且自动转化为如下 Markdown
📜 报告输出表格输出示例

🧰 使用示例 | Examples

# 分析本地消毒区域视频
python -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat

# 分析网络消毒区域视频
python -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog

# 显示历史监测报告/显示报告清单列表
python -m scripts.smyx_uv_safety_monitor_analysis --list

# 输出精简报告
python -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --detail basic

# 保存结果到文件
python -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --output result.json

Related skills

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

More from smyx-sunjinhui

Browse all skills

Conducts video analysis of learning behavior for children/students, identifies poor learning habits, provides structured analysis reports and family education improvement suggestions, focusing on learning habit cultivation and behavior correction. | A comprehensive tool designed to analyze video footage of children's and students' learning behaviors. It identifies poor study habits and provides structured analysis reports along with actionable suggestions for family education improvements. The tool is dedicated to fostering positive study habits and facilitating behavioral correction. | 分析孩子学习行为 孩子学习行为分析工具,针对孩子/学生的学习行为进行视频分析,识别不良学习习惯,提供结构化分析报告和家庭教育改善建议,专注学习习惯培养和行为矫正

by smyx-sunjinhui31 installs4 stars

Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides structured mental health analysis reports and improvement suggestions. | 心理健康分析工具,针对人的心理健康和心理行为进行分析,支持通过视频分析识别常见心理问题倾向,提供结构化心理健康分析报告和改善建议

by smyx-sunjinhui27 installs5 stars

Analyzes videos to evaluate human eating behaviors, habits, and dietary patterns. It identifies tendencies towards unhealthy eating and provides structured analysis reports along with nutritional improvement recommendations. | 饮食行为健康分析工具,针对人的饮食行为、进食习惯、饮食结构进行视频分析,识别不良饮食行为倾向,提供结构化分析报告和营养改善建议

by smyx-sunjinhui24 installs5 stars

Professional discernment of subtle cues! It performs detailed analysis and recognition of facial micro-expressions, outputs precise emotional state reports, and unveils true inner emotional activities. | 微观情绪(微表情)识别分析工具,专业察言观色!针对人物面部微表情进行细致分析识别,输出精准的情绪状态分析报告,揭示真实内心情绪活动

by smyx-sunjinhui24 installs5 stars

Triggers diagnostic analysis when users provide video URLs or files for reptiles such as lizards, snakes, and spiders. Supports uploading local videos or network URLs to call the server-side API for health checks. It analyzes features like scales, skin, and body appearance to identify potential diseases and generate a Pet Safety Guardian health report. | 爬行类宠物健康诊断分析工具,当用户提供蜥蜴、蛇、蜘蛛等爬行宠物的视频 URL 或文件需要分析时,触发本技能进行爬行宠物健康诊断分析;支持通过上传本地视频或网络视频 URL,调用服务端 API 进行爬行宠物健康检查,分析鳞片、皮肤、身体外观等特征,识别潜在疾病并输出宠安卫士健康报告

by smyx-sunjinhui23 installs4 stars

Supports identifying high-risk behaviors and health risks through video/images, including elderly falls, precursors to heart attacks and strokes, and abnormal behaviors, issuing timely warning alerts. | 高风险行为识别分析工具,支持通过视频/图片识别高危行为和健康风险,包括老人跌倒、心梗脑梗前兆、异常行为等,及时发出预警提示

by smyx-sunjinhui22 installs4 stars