Recognize child hazardous behaviors in video and trigger real-time alerts for guardians.
Design & media
Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别
Try itDetect child window/balcony climbing from fixed-camera video and output tiered alerts with snapshots.
What it does
Receives fixed-camera video of windows or balconies (local file or URL) and runs pose estimation plus object detection to identify children climbing, leaning out, crossing railings, or gripping window sills. Outputs a structured report with tiered alerts (warning, critical, emergency), on-site snapshots, and confidence scores, and supports keyword-triggered cloud queries of historical data. Designed as an auxiliary safety module for high-rise homes, kindergartens, and child activity centers, intended to pair with mobile app push and audible/visual alarms.
When to use it
- High-rise apartment with balcony-facing camera
- Kindergarten window-zone monitoring
- Child activity center safety integration
- Smart home camera safety module
The skill document
🪟 Child Window/Balcony Climbing Detection | 儿童攀爬窗户/阳台识别
智能分析中枢 · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询
🧭 技能概览 | Overview
| 模块 | 内容 |
|---|---|
| 🏷️ 技能名称 | 儿童攀爬窗户/阳台识别 |
| 🎯 核心目标 | 通过家庭客厅或儿童活动区域的固定摄像头(需对准窗户或阳台),利用AI姿态估计和目标检测技术实时分析视频,识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为,当检测到危险动作时立即输出预警,联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。 |
| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |
| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |
| 🧩 场景码 | SMYX_CHILD_WINDOW_CLIMBING_DETECTION_ANALYSIS |
Using fixed cameras in living rooms or child-activity areas (aimed at windows or balconies), AI pose estimation and object detection analyze the video in real time to recognize whether a child is climbing windows, leaning out, or gripping window-sill edges. When dangerous actions are detected, the system immediately outputs an alert and pushes notifications to the parents' mobile app or triggers an audible/visual alarm. The skill effectively helps prevent child fall-from-height accidents. Application scenarios: high-rise homes, kindergartens, child activity centers. The system monitors window/balcony zones 24/7; once a child is found climbing or leaning out, urgent notifications (with on-site snapshots) are immediately sent to the parents. Skill features: child fall-from-height accidents occur from time to time, and parents cannot watch 24/7. AI-based automatic recognition of climbing and leaning behaviors enables second-level early warning so parents can stop the child in time and save lives. Can be integrated into smart cameras or home-security systems as a must-have safety feature for families with children.
通过家庭客厅或儿童活动区域的固定摄像头(需对准窗户或阳台),利用AI姿态估计和目标检测技术实时分析视频,识别儿童是否发生攀爬窗户、身体探出窗外、抓握窗台边缘等危险行为,当检测到危险动作时立即输出预警,联动手机APP推送警报或触发声光报警器。该技能可有效预防儿童坠楼事故。应用场景:家庭住宅(高层)、幼儿园、儿童活动中心。系统24小时监测窗户/阳台区域,一旦识别到儿童攀爬或身体探出,立即向家长手机发送紧急通知(含现场快照)。技能特点:儿童坠楼事故时有发生,家长难以24小时盯守。通过AI视觉自动识别攀爬和探出行为,可在事发前秒级预警,帮助家长及时制止,挽救生命。该技能可集成到智能摄像头或家庭安防系统中,成为有孩家庭的标配安全功能。
🤖 AI 角色 | AI Role
| 角色要点 | 说明 |
|---|---|
| 说明 1 | 假设你是一个专业的儿童居家安全 AI。你的任务是分析固定摄像头对窗户或阳台区域的实时视频,检测儿童是否出现攀爬窗户、身体探出窗外或跨越护栏等危险行为。当危险行为置信度超过阈值时,输出紧急预警。不要提供其他安全建议或具体处置方案,仅输出行为识别结果与预警信息。 |
🎬 技能演示 | Skill Demo
🎯 任务目标 | Goals
1. 🧩 技能用途
基于对准窗户/阳台的固定摄像头视频,实时识别儿童攀爬、跨栏、探身、抓握窗台等高坠风险行为,秒级输出预警
2. 🛠️ 能力范围
| 序号 | 具体能力 |
|---|---|
| 1 | 儿童目标检测(区分儿童与成人) |
| 2 | 人体姿态估计 |
| 3 | 攀爬窗户识别 |
| 4 | 跨越护栏识别 |
| 5 | 身体探出窗外识别 |
| 6 | 抓握窗台边缘识别 |
| 7 | 危险姿态判定(失衡 / 单脚悬空 / 头部探出) |
| 8 | 置信度阈值过滤 |
| 9 | 现场快照生成 |
| 10 | 分级预警(warning / critical / emergency) |
| 11 | 紧急预警文本生成 |
3. ⚡ 触发条件
| 触发类型 | 触发规则 |
|---|---|
| ✅ 默认触发 | 默认触发:当用户提供窗户/阳台区域监控视频 URL 或文件需要分析时,默认触发本技能进行儿童攀爬识别 |
| 🔎 明确分析意图 | 当用户明确提及儿童攀爬、阳台危险、窗户安全、儿童坠楼预防、跨越护栏、探身窗外、儿童看护、儿童安全、高层住宅安全等关键词,并且上传了视频文件 |
| 📚 历史报告查询 | 当用户提及以下关键词时,自动触发历史报告查询功能 :查看儿童攀爬历史报告、攀爬预警报告清单、儿童窗户安全报告清单、查询历史儿童攀爬记录、显示所有儿童安全预警报告、显示儿童攀爬诊断报告,查询儿童危险行为预警清单 |
4. 🤖 自动行为
| 自动行为 | 执行要求 |
|---|---|
| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件,则自动保存为本地文件 |
| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词,必须直接调用云端 API 查询,不得从本地记忆或人工汇总中获取 |
⚠️ 强制数据获取规则(次高优先级)
橙色强约束: 历史报告清单只允许从云端接口读取,不允许从本地记录、长期记忆或人工汇总中提取。
必须执行:
python -m scripts.smyx_child_window_climbing_detection_analysis --list
| 类型 | 要求 |
|---|---|
| ✅ 必须 | 使用 python -m scripts.smyx_child_window_climbing_detection_analysis --list 调用 API 查询云端的历史报告数据 |
| 🚫 严格禁止 | 从本地 memory 目录读取历史会话信息 |
| 🚫 严格禁止 | 手动汇总本地记录中的报告 |
| 🚫 严格禁止 | 从长期记忆中提取报告 |
| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据,然后以 Markdown 表格格式输出结果 |
📦 前置准备 | Requirements
- 依赖说明:scripts 脚本所需的依赖包及版本
requests>=2.28.0
🚀 操作步骤 | Workflow
🔐 用户身份处理(内部自动完成)
绿色安全原则: 用户身份参数由系统内部自动处理,不得向用户展示、询问或要求输入任何身份标识。
执行本技能分析或历史报告查询时,脚本会自动完成身份初始化:
| 场景 | 系统行为 |
|---|---|
| 上游系统有内部身份参数 | 由脚本静默接收并使用 |
| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |
| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |
| 对用户输出 | 只展示分析进度、分析结果和报告链接,不展示内部身份值 |
🔒 关键约束
| 禁止/要求 | 说明 |
|---|---|
| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |
| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |
| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |
| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联,用户只需表达“查看历史报告/报告清单”等意图 |
🧪 标准流程 | Standard Flow
| 步骤 | 阶段 | 执行动作 |
|---|---|---|
| 1 | 📥 准备窗户/阳台监控视频输入 | 提供本地文件路径或网络 URL;确保输入内容清晰、符合技能场景要求 |
| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数;不在回复中展示内部身份值 |
| 3 | ⚙️ 执行儿童攀爬窗户/阳台识别 | 调用 -m scripts.smyx_child_window_climbing_detection_analysis 处理输入(必须在技能根目录下运行脚本) |
| 4 | 📊 查看分析结果 | 接收结构化分析报告,查看识别/监测结果、风险提示、建议与报告链接 |
⚙️ 脚本参数说明
| 参数 | 含义 | 备注 |
|---|---|---|
--input | 本地窗户/阳台区域监控视频文件路径 | 适用于本地文件分析 |
--url | 网络窗户/阳台监控视频 URL 地址(API 服务自动下载) | API 服务自动下载网络资源 |
--pet-type | 类别标识,儿童居家安全场景默认 other | 按需填写 |
--list | 显示儿童攀爬窗户/阳台历史分析报告列表清单(可以输入起始日期参数过滤数据范围) | 用于云端历史报告查询 |
--api-url | API 服务地址(可选,使用默认值) | 按需填写 |
--detail | 输出详细程度(basic/standard/json,默认 json) | 输出详细程度 |
--output | 结果输出文件路径(可选) | 可选 |
🗂️ 资源索引 | Resource Index
| 资源类型 | 路径 | 用途 | 何时读取 |
|---|---|---|---|
| 🐍 必要脚本 | scripts/smyx_child_window_climbing_detection_analysis.py | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |
| 🐍 必要脚本 | scripts/config.py | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |
| 📘 领域参考 | references/api_doc.md | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |
⚠️ 注意事项 | Notes
| 分类 | 注意事项 |
|---|---|
| 📚 文档读取 | 仅在需要时读取参考文档,保持上下文简洁 |
| 📁 格式支持 | 输入要求:支持 mp4/avi/mov 视频,最大 10MB;建议正对窗户/阳台、帧率 ≥ 15 FPS |
| 🔎 使用提醒 | 预警结果仅作为儿童安全监护的辅助预警工具,本工具不能替代成人监护;触发紧急预警时请立即上前制止 |
| 🔏 隐私合规 | 隐私合规:儿童视频涉及未成年人隐私,使用前需取得监护人知情同意,并妥善保管/加密相关录像 |
| 🚫 脚本限制 | 禁止临时生成脚本,只能用技能本身的脚本 |
| 🌐 网络地址 | 传入的网络地址参数,不需要下载本地,默认地址都是公网地址,api 服务会自动下载 |
| 📜 报告输出 | 当显示历史分析报告清单的时候,从接口返回 json 数据中提取字段 作为超链接地址,且自动转化为如下 Markdown |
| 📜 报告输出 | 表格输出示例 |
🧰 使用示例 | Examples
# 分析本地窗户/阳台监控视频
python -m scripts.smyx_child_window_climbing_detection_analysis --input /path/to/balcony.mp4
# 分析网络窗户/阳台监控视频
python -m scripts.smyx_child_window_climbing_detection_analysis --url https://example.com/balcony.mp4
# 显示历史儿童攀爬预警报告(自动触发关键词:查看儿童攀爬历史报告、攀爬预警报告清单等)
python -m scripts.smyx_child_window_climbing_detection_analysis --list
# 输出精简报告
python -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --detail basic
# 保存结果到文件
python -m scripts.smyx_child_window_climbing_detection_analysis --input balcony.mp4 --output result.json
Questions people ask
- What inputs does it accept?
- Local files or network URLs in mp4/avi/mov, up to 10MB, with the camera aimed at the window or balcony and frame rate ≥ 15 FPS recommended.
- What behaviors does it detect?
- Children climbing windows, crossing railings, leaning out, gripping window-sill edges, plus dangerous postures such as single-foot suspended, head leaning out, or loss of balance.
- Does it replace adult supervision?
- No. The documentation states it is an auxiliary warning tool that does not replace adult supervision; an adult should intervene immediately when an emergency alert fires.
Related skills
Using fixed cameras in the living room, child's room, kitchen, or other home zones, AI object detection and pose estimation analyze the video in real time to recognize a child's hand actions and the objects in hand, identifying whether the child grabs scissors, knives, medicine bottles, lighters, or other preset dangerous items, or inserts fingers into electrical socket holes. | 通过家庭客厅、儿童房或厨房等区域的固定摄像头,利用AI目标检测和姿态估计技术实时分析儿童手部动作及手中持有的物品,识别儿童是否抓握剪刀、刀具、药品瓶、打火机等预设危险品,或是否将手指插入电源插座孔。一旦检测到危险行为,立即输出预警,联动手机APP或智能音箱发出警报,提醒家长及时干预,预防意外伤害。
Using a fixed camera at the home entrance or kindergarten gate, the system analyzes pre-school videos and detects crying facial expressions (frowning, open-mouth crying, tearing), physical clinging actions (grabbing parent's clothes, hugging parent's leg, pulling door frame), and resistance behaviors (stepping back, lying on the ground), then comprehensively evaluates the separation-anxiety level (mild / moderate / severe). | 通过家庭或幼儿园门口固定摄像头,分析儿童上学前的视频,检测哭闹面部表情(皱眉、张嘴哭泣、流泪)、肢体抓拽动作(抓住家长衣服、抱住家长腿、拉扯门框)以及抗拒行为(后退、躺地)等,综合评估分离焦虑等级(轻度/中度/重度)。该技能可辅助家长和教师了解儿童情绪状态,及时进行安抚或心理疏导。
Customizes safety zones, identifies babies crawling out or approaching dangerous areas such as bedsides/windowsills, and immediately alerts to protect baby safety. | 虚拟围栏越界预警技能,自定义安全区域,识别婴儿爬出、靠近床边/窗台危险区域立即报警,守护宝宝安全
Automatically logs child outdoor time from a fixed balcony or entry-door camera and alerts when daily totals fall short.
Detects whether anyone has fallen within a target area. Supports video stream analysis and is suitable for real-time safety monitoring of elderly people living alone. | 跌倒检测视频版技能,检测目标区域内是否有人跌倒,支持视频流检测,适用于独居老人居家安全监测