← 返回 Skills 市场
dddjj0

Camera Capture

作者 dddjj0 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
160
总下载
1
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install camera-capture
功能描述
Control the local computer's built-in camera for capturing photos and basic operations.
使用说明 (SKILL.md)

Camera Control Skill

Control the local computer's built-in camera for capturing photos and basic operations.

When to Use

  • User wants to take a photo using the computer camera
  • User asks to capture an image from the webcam
  • User wants to check the camera view
  • Commands like: "拍照", "打开摄像头", "拍张照片", "camera", "webcam", "take a photo"

Tools Required

  • Python 3 with OpenCV (cv2)
  • Standard library only (no extra deps beyond opencv-python)

Usage

Take a Photo

Capture a single frame from the default camera:

python3 skills/camera/scripts/camera.py capture --output "~/.openclaw/workspace/captures/photo_$(date +%Y%m%d_%H%M%S).jpg"

Or use the wrapper for default location:

python3 skills/camera/scripts/capture.py

This saves to ~/.openclaw/workspace/captures/ with timestamp.

List Available Cameras

python3 skills/camera/scripts/camera.py list

Test Camera (preview window, auto-close after 3 seconds)

python3 skills/camera/scripts/camera.py preview --duration 3

Output

  • Photo path is printed to stdout
  • Use this path with the image tool to analyze the captured photo
  • Photos are saved to captures/ directory by default

Examples

User: "拍张照片" Action: Run capture script, then use image tool to show/analyze the photo.

User: "看看摄像头画面" Action: Run preview script for 3 seconds to verify camera works.

Notes

  • Default camera index is 0 (built-in webcam)
  • If you have multiple cameras, use --camera 1, --camera 2, etc.
  • On Windows, the script auto-detects and works with DirectShow backend
  • Captures directory is auto-created if it doesn't exist
安全使用建议
This skill is internally coherent: it runs local Python scripts using OpenCV to access your webcam and saves images under ~/.openclaw/workspace/captures/. It does not request credentials or show any network/exfiltration code in the bundle. Before installing, consider: (1) Install opencv-python in a controlled environment and review the scripts yourself (they are short and readable). (2) Be aware that camera access is privacy-sensitive—only install if you trust the agent and its ability to invoke skills; consider disabling autonomous model invocation if you want explicit prompts before camera use. (3) You can test by running the capture script manually and inspect saved photos; remove the captures directory or uninstall the skill to revoke local artifacts.
能力评估
Purpose & Capability
Name/description match the included scripts and declared requirements: python3 + OpenCV. The scripts implement list, capture, and preview and only require local camera access and a local captures directory.
Instruction Scope
SKILL.md instructs running the provided Python scripts to list, preview, or capture photos; instructions reference only the captures directory and the image tool for local analysis. There are no instructions to read unrelated files, environment variables, or to contact external endpoints.
Install Mechanism
No install spec is provided (instruction-only). Dependencies are limited to opencv-python (pip), and requirements.txt reflects that. There are no external download URLs or archive extracts in the skill.
Credentials
The skill requests no environment variables or credentials. It writes captured images to ~/.openclaw/workspace/captures/ (created if missing), which is reasonable for this purpose but is sensitive data (local images).
Persistence & Privilege
always: false and no system-wide config changes. However, model invocation is allowed (platform default), so an agent with autonomous capability could trigger the camera—this is a privacy consideration rather than a code incoherence.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install camera-capture
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /camera-capture 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Updated version in SKILL.md and added MIT license
v1.0.1
Added MIT license with attribution requirement
v1.0.0
Initial release - camera capture, list, and preview
元数据
Slug camera-capture
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Camera Capture 是什么?

Control the local computer's built-in camera for capturing photos and basic operations. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 160 次。

如何安装 Camera Capture?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install camera-capture」即可一键安装,无需额外配置。

Camera Capture 是免费的吗?

是的,Camera Capture 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Camera Capture 支持哪些平台?

Camera Capture 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Camera Capture?

由 dddjj0(@dddjj0)开发并维护,当前版本 v1.0.2。

💬 留言讨论