下载技能包
License
MIT-0
运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install camsnap-snap
镜像加速npx clawhub@latest install camsnap-snap --registry https://cn.longxiaskill.com 镜像可用
技能文档
Camsnap 是一种为 AI 代理提供的相机快照实用工具。其特点包括: 安全的网络摄像头捕获,保证资源释放 路径遍历保护和扩展验证 可配置的相机索引和输出目录 结构化日志记录(无打印语句) 带类型注释的 API 使用方法: python3 camsnap.py python3 camsnap.py --output-dir ./photos python3 camsnap.py snapshot.png --camera 1 作为模块: from camsnap import take_snapshot path = take_snapshot(output_dir="snapshots", camera_index=0)