返回顶部
c

camera

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
86
下载量
1
收藏
概述
安装方式
版本历史

camera

# 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: ```bash 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: ```bash python3 skills/camera/scripts/capture.py ``` This saves to `~/.openclaw/workspace/captures/` with timestamp. ### List Available Cameras ```bash python3 skills/camera/scripts/camera.py list ``` ### Test Camera (preview window, auto-close after 3 seconds) ```bash 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

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 camera-capture-1775876173 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 camera-capture-1775876173 技能

通过命令行安装

skillhub install camera-capture-1775876173

下载 Zip 包

⬇ 下载 camera v1.0.2

文件大小: 3.96 KB | 发布时间: 2026-4-12 09:18

v1.0.2 最新 2026-4-12 09:18
Updated version in SKILL.md and added MIT license

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部