agentleFS
tomo3141592653tomo3141592653/ayumu-oss/.claude/skills/camera/SKILL.md

camera

Skill9 starsChanged 9 months agoMITView on GitHub

カメラで撮影・画像取得・IPカメラやWebカメラで写真を撮る・PTZ操作・部屋の様子を見るとき → このスキルを読む

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use claude-buddy, face-enroll and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • autonomous-aiSkill

    claude-buddy

    Coordinate with the Claude Buddy companion (Claude Desktop + Claude Code on the user's Mac) — voice-approve tool permission prompts and stay aware of Claude activity.

    Also in 3 projects that use this

  • autonomous-aiSkill

    face-enroll

    Manage the device's face recognition roster — enroll new faces (3 paths: user-supplied photo, agent-captured snapshot on user request, or HAL's familiar-stranger prompt) and maintain the enrolled set (status / remove / reset). All enrolled persons are friends; strangers stay unnamed until promoted via one of the enroll flows.

    Also in 3 projects that use this

  • +10 more from autonomous-ai

The file

Files
SKILL.md

IPカメラ連携スキル

PCに接続されたWebカメラやネットワーク上のIPカメラで写真を撮影する。

基本的な使い方

Webカメラ撮影(take_photo.py)

WSL2環境でも動作。PowerShell経由で自動的にWindows側のカメラにアクセスする。

# 1枚撮影(デフォルト設定)
uv run .claude/skills/camera/take_photo.py
# → tmp/photo_YYYYMMDD_HHMMSS.jpg に保存される

# 保存先を指定
uv run .claude/skills/camera/take_photo.py output.jpg

# 利用可能なカメラを確認
uv run .claude/skills/camera/take_photo.py --list

# 別のカメラを使う
uv run .claude/skills/camera/take_photo.py --camera 1

PTZカメラ操作(camera.py)

ONVIF対応のPTZカメラを操作する場合:

# 撮影
uv run tools/camera.py see

# 首振り操作
uv run tools/camera.py look-left 30
uv run tools/camera.py look-right 30
uv run tools/camera.py look-up 20
uv run tools/camera.py look-down 20

# 見回す
uv run tools/camera.py look-around

ユースケース

  • 部屋の確認: カメラで室内の状態を確認
  • 作業記録: 作業環境をキャプチャ
  • 見守り: 定期撮影で安全確認
  • AI Vision: カメラ入力でAIが周囲を認識

技術詳細

  • Webカメラ: OpenCV (opencv-python) ベース
  • IPカメラ: ONVIF / RTSP プロトコル
  • 対応OS: Linux、Mac、Windows(WSL2含む)
  • フォーマット: JPEG
  • ウォームアップ: 最初の5フレームはスキップ(品質向上)

トラブルシューティング

カメラが開けない

# カメラ一覧確認
uv run .claude/skills/camera/take_photo.py --list

# 別のカメラIDで試す
uv run .claude/skills/camera/take_photo.py --camera 1

権限エラー(Linux)

# ユーザーをvideoグループに追加
sudo usermod -a -G video $USER
# 再ログイン必要

WSL環境

WSL2環境ではPowerShell経由で自動的にWindows側のカメラにアクセスする。 追加ツール(CommandCam, ffmpeg)があると高速化できるが、なくても動作する。

Pythonから使う例

from take_photo import take_photo

# 撮影
photo_path = take_photo("my_photo.jpg")
print(f"保存: {photo_path}")

# デフォルト設定
photo_path = take_photo()  # tmp/photo_*.jpg

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.