摄像头物体检测(基于YOLO)

SKILL生活服务
生活服务 未标注权限 许可证不明确
安装这个技能

在实时 RTSP 摄像头视频流上进行粗粒度空间关系检测,基于 YOLO26 和 OpenCV 构建,可选择轻量级 ONNX 后端。 它会将监控意图映射到 COCO 类之间的空间检查(例如“宠物在餐桌上”、“进入限制区域”),当检测到可疑匹配时,会保存标注截图到磁盘。 不进行细粒度行为识别——Agent 会先读取截图进行二次审核,然后再决定是否通知用户。 适用于用户希望通过 RTSP 流 URL监控粗略的存在或空间事件(宠物爬上家具、区域入侵)时使用。

一句话选型结论

按资料字段整理

摄像头物体检测(基于YOLO)是生活服务类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类生活服务 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_2effd27d/rtsp-spatial-detector
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

生活服务
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_2effd27d仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验2026-11-06上游最后核验时间 · 数据更新 2026-11-06
正文体量8.5 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
行程与攻略

按目的地和天数排行程。

日常信息查询

查天气、交通、办事信息。

生活事务整理

把琐事整理成清单逐项处理。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在生活服务场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
摄像头物体检测(基于YOLO)当前 未标注权限 未标注 未标注 未标注 有
食谱批量下载文件夹 联网访问 GitHub 仓库 28.5 万 Codex、Claude、Cursor 有
食谱创建演示文稿 未标注权限 GitHub 仓库 28.0 万 Codex、Claude、Cursor 有
recipe 备份 sheet AS CSV 联网访问 GitHub 仓库 27.9 万 Codex、Claude、Cursor 有
recipe create Gmail filter 邮件管理 未标注权限 GitHub 仓库 27.8 万 Codex、Claude、Cursor 有
配方观察驱动器变化 联网访问 GitHub 仓库 27.4 万 Codex、Claude、Cursor 有

SKILL.md 全文

8.5 KB
模型实际读到的说明书原文,来自技能仓库

Live Camera Coarse Spatial Detection

This skill provides coarse-grained spatial relationship detection: in an RTSP
camera feed, it decides whether a target of a given class appears where it
shouldn't be (a pet on the dining table, someone entering a restricted zone).
On a suspicious match, an annotated screenshot is saved to disk.

This skill cannot distinguish behavioral details — whether a dog on the table
is stealing food or just sleeping, or whether a pet near cables is passing by or
chewing them. Those fine-grained judgments are made by the Agent after reading
the screenshot. The skill itself never notifies the user.

User intent ("Watch the dog — don't let it steal food from the table")
       ↓  Agent maps to
  Spatial relationship (subject=dog, surface=dining table, on_or_over)
       ↓
  This skill: YOLO coarse detection → trigger → annotated screenshot saved
       ↓
  Agent reads screenshot → fine-grained judgment
       ↓
  Confirmed violation → notify user; false positive → stay silent

When to Use

  • The user wants to monitor a live camera for coarse presence/spatial events:
    pets on furniture, someone entering a zone, objects where they don't belong.
  • An RTSP stream URL is available (obtain it via @xpai-camera-control or any
    other source).
  • The deliverable is "a trigger plus a screenshot worth looking at" — fine
    behavior judgment is delegated to the Agent.

When NOT to Use

  • The user needs identity tracking across cameras ("where did this person
    go?") — use the sibling skill rtsp-multi-tracker instead.
  • The target object is outside the model vocabulary (e.g. cables, knives) and no
    proxy surface class fits — a custom-trained model is required (see
    references/configuration.md).
  • The user expects this skill to notify them directly — it doesn't; the Agent
    must review screenshots and decide.

Workflow

1. Obtain an RTSP stream URL

Use @xpai-camera-control (or the user's own source) to get a live
rtsp://... URL. This skill does not manage cameras — it only consumes streams.

2. Map intent to scenarios

Write the stream URL into scripts/settings.json → rtsp_url (or pass --rtsp)
and declare monitoring scenarios in scenarios[]. The Agent must translate the
user's intent into COCO-class combinations:

  • "Dog stealing food from the table" → subject: dog, surface: dining table,
    relationship: on_or_over
  • "Cat entered the bedroom" → subject: cat, surface: bed (bed as zone proxy),
    relationship: on_top
  • "Person in a restricted zone" → subject: person, surface: <proxy object>,
    relationship: within

Full field reference plus the semantic mapping guide (COCO class table, mapping
principles, blind spots): references/configuration.md.

3. Get model weights (first run)

No model weights ship with the skill (publishing constraint) — neither
yolo26n.pt nor yolo26n.onnx is bundled. Obtain and verify them once:

python scripts/setup_model.py --onnx          # .pt (if missing) -> local export -> verify .onnx
python scripts/setup_model.py                 # .pt only (ultralytics backend)
python scripts/setup_model.py --from <path>   # import an existing local .pt, then verify it
python scripts/setup_model.py --check         # verify existing .pt offline
python scripts/setup_model.py --onnx --check  # verify existing .onnx offline

setup_model.py embeds no URLs — the .pt download goes through the installed
ultralytics official-asset mechanism and is checked against the SHA-256
fingerprint this skill was validated with (mismatch exits non-zero). If a
verified copy already sits elsewhere (old directory / cache / offline media),
--from <path> copies it into scripts/ and runs the same check — no download
needed. The .onnx is generated locally from that verified .pt via the
ultralytics exporter (no network) and checked against a semantic fingerprint
(weights + graph + attributes; metadata-independent — ONNX export embeds a
timestamp).

4. Start detection (persistent background process)

python scripts/main.py --rtsp "rtsp://..."

ONNX lightweight deployment (no torch; pip install opencv-python numpy onnxruntime):

python scripts/main.py --rtsp "rtsp://..." --model yolo26n.onnx --backend onnx

The skill then runs continuously: read stream → YOLO inference → spatial check →
save annotated screenshot on trigger. The Agent can work on other tasks and poll
the screenshot directory periodically.

Useful flags (full table in references/configuration.md):

Flag Purpose
--source 0 / --source demo.mp4 Debug with a webcam / video file
--frame-skip N Process 1 of every N+1 frames when real time lags
--conf 0.35 Override the global confidence threshold
--cooldown 10 Min interval between screenshots (seconds)
--show OpenCV preview window (with HUD overlay)
--mjpeg-port 8090 MJPEG live view for a browser at 127.0.0.1:8090
--list-classes Print the model capability table (COCO 80)

5. Review triggers (Agent loop)

Each trigger writes into the output_dir tree (shipped default: ./captures,
resolved against the working directory — see
references/agent-review.md for details):

captures/
├── capture_<ts>.jpg            raw trigger frame
├── capture_<ts>_annotated.jpg  same frame with the relation drawn
├── pending/
│   ├── <event_id>.jpg          annotated frame for review
│   │                           (red box = subject / blue box = surface)
│   └── <event_id>.json         event metadata (scenario / subject / conf / ...)
└── reviewed/
    └── <event_id>.json         verdict written back by the Agent (optional)

Agent review loop:

  1. Read pending/<event_id>.jpg and pending/<event_id>.json.
  2. Judge against the user's original intent (stealing? just sleeping? passing by?).
  3. Write the verdict to captures/reviewed/<event_id>.json — fields confirmed,
    verdict, reason, confidence; the running HUD picks it up.
  4. Confirmed violation → notify the user with the screenshot; false positive →
    stay silent.

Known Limitations

  • COCO 80 classes only — objects outside the vocabulary (e.g. cables) cannot
    be detected directly. Approximate with a proxy surface class, or plug in a
    custom-trained model via model.class_names.
  • No ROI / polygon zones — zones are approximated by detected objects (use
    "bed" as a bedroom proxy).
  • OR semantics — subject: ["cat", "dog"] means cat or dog; a single
    scenario cannot express AND / NOT / time windows.
  • Single-frame geometry — a pet lying on the table and a pet standing on it
    produce the same trigger; this is exactly why Agent review exists.
  • No notification — the skill only writes screenshots; notifying the user is
    the Agent's responsibility.

References

  • references/configuration.md — settings.json & scenario fields, full CLI table, semantic mapping guide
  • references/agent-review.md — pending/ content, event metadata, verdict write-back format, notification policy
  • references/tuning.md — relationship thresholds, model choice, RTSP hardening, downstream integration
  • references/troubleshooting.md — FAQ: config errors, offline model install, stream/connection diagnosis, anti-patterns

常见问题

5 问
答案由本站依据条目字段整理
摄像头物体检测(基于YOLO)怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_2effd27d/rtsp-spatial-detector。安装方式为未标注。装完刷新技能列表或重开客户端。

摄像头物体检测(基于YOLO)支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

摄像头物体检测(基于YOLO)权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

摄像头物体检测(基于YOLO)收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

摄像头物体检测(基于YOLO)用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 2026-11-06。