Yolo Camera Skill logo

Yolo Camera Skill

Community
longjingcha
yolo-camera-skill

从摄像头采集素材,自动预标注、风险评分、人工复核、训练 YOLO,并输出报表和实时检测结果。适合固定场景下的目标检测闭环。

Overview

Publisherlongjingcha
Repositoryyolov8skill
Skill nameyolo-camera-skill
Stars
73
Forks
18
Bundled files
10
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by longjingcha on GitHub. Read the source before you install it.

Installation

Install the Yolo Camera Skill AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/longjingcha/yolov8skill/tree/main/skills/yolo-camera-skill
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/longjingcha/yolov8skill.git /tmp/yolov8skill
mkdir -p .claude/skills
cp -r /tmp/yolov8skill/skills/yolo-camera-skill .claude/skills/yolo-camera-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Yolo Camera Skill in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Yolo Camera Skill on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Yolo Camera Skill is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

YOLO Camera Skill

目标

把“采集 → 预标注 → 风险评分 → 复核 → 训练 → 报表 → 实时检测”做成一个可控、可拒识、可回流的闭环,而不是把模型输出直接当最终真值。

适用场景

  • 用户手边有实物,希望通过摄像头快速训练一个识别模型
  • 用户希望用手机或电脑摄像头采集素材并快速迭代
  • 用户需要一个从采集到上线的完整检测闭环

设计原则

  1. 候选生成高召回,真值生成高保守:YOLO / FastSAM / qwen_label.py 只负责候选,不直接写训练集。
  2. 不确定就拒识:低置信目标必须进入复核队列,禁止强行标注。
  3. 先规则后训练:所有自动标注都要经过质量校验、风险评分和类别策略。
  4. 人工只看高价值样本:只让人处理低置信、新分布、冲突样本。
  5. 持续回流:复核结果、误检、漏检进入难例集,周期性再训练。

推荐工作流(五层闭环)

1)采集层

运行 capture_from_camera.py

  • 录制视频或直接抽帧
  • 支持可视化预览,方便确认采集状态
  • 输出 captured_frames/ 或视频文件,供后续处理

2)候选生成层

运行 qwen_label.py

  • 对图片进行自动预标注
  • 生成候选框、来源、初始置信度
  • 对小目标、复杂场景可配合分块或多策略融合

3)质量判定与风险路由层

运行 risk_scoring.py 或 qwen_label.py 的风险评分阶段

  • 类别合法性、边界合法性、面积合法性、重叠合法性校验
  • 生成风险分数,按阈值分为:
    • auto_accept 自动通过
    • needs_review 人工复核
    • reject 拒识
  • 支持类别级阈值配置,避免一刀切

4)训练与回流层

运行 prepare_data.py + train.py

  • prepare_data.py:将标注结果转换为 YOLO 数据格式
  • train.py:仅使用通过校验的高质量样本训练 YOLO
  • 复核修改后的样本自动回流到训练集/难例集
  • 输出可复现的数据集结构和 best.pt

5)检测与报表层

运行 live_detect.py + report.py

  • live_detect.py:实时检测并记录统计日志,可选收集难例
  • report.py:汇总统计、生成曲线图和报表
  • 帮助你判断模型是否真的在变好

推荐目录结构

text
yolo-camera-skill/
├── capture_from_camera.py
├── qwen_label.py
├── risk_scoring.py
├── hard_case_collect.py
├── prepare_data.py
├── train.py
├── live_detect.py
├── report.py
├── pipeline.py
├── configs.yaml
├── data/
├── runs/
└── README.md

配置建议

configs.yaml

统一管理类别、阈值、风险权重、采集参数、训练参数和检测参数。

示例:

yaml
auto_accept_threshold: 0.85
review_threshold: 0.55
min_box_area: 32
max_overlap_iou: 0.85
enable_tiling: true
tile_size: 640
tile_overlap: 0.2

自动标注策略

你应该保留的能力

  • 预标注候选生成
  • 风险评分
  • 难例收集
  • 类别级阈值
  • 人工复核队列
  • 报表统计

你应该弱化的能力

  • 让模型一次性输出最终真值
  • 逐张粗暴复核但不记录日志
  • 没有规则直接入库

典型使用方式

一、采集素材

bash
python capture_from_camera.py --mode image --save_interval 10 --output_dir captured_frames

二、完整快速流程

bash
python pipeline.py --mode full_quick

三、检测 + 难例收集

bash
python pipeline.py --mode detect
python live_detect.py --model best_bracelet.pt --collect_hard

四、实时检测

bash
python live_detect.py --model best_bracelet.pt --conf 0.3
python live_detect.py --model best_bracelet.pt --conf 0.3 --collect_hard

工业化落地建议

  • 先把类别收紧到少量高频类
  • 先做规则和阈值,再优化模型
  • 把低置信样本、误检样本、漏检样本单独存档
  • 每次训练都记录数据版本和标注版本
  • 先提升“脏标剔除率”,再追求覆盖率

前置条件

  • Python 3.9+
  • ultralytics、opencv-python、matplotlib
  • 如使用云端预标注,需要配置 DASHSCOPE_API_KEY

说明

这套方案的重点不是把模型当最终真值,而是把它当候选生成器,再由规则和复核保证质量。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Yolo Camera Skill AI skill do?

从摄像头采集素材,自动预标注、风险评分、人工复核、训练 YOLO,并输出报表和实时检测结果。适合固定场景下的目标检测闭环。

Why use Yolo Camera Skill on TypingMind?

Because you install it once and use it with any model. Yolo Camera Skill is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Yolo Camera Skill in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/longjingcha/yolov8skill/tree/main/skills/yolo-camera-skill. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Yolo Camera Skill?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Yolo Camera Skill?

As many as you like. As long as a model supports skills, you can use Yolo Camera Skill with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Yolo Camera Skill AI skill free?

It is published on GitHub by longjingcha. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇