Segment Anything Model Guide
Orchestra-Research/AI-Research-SKILLs
Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.
Interactive click-to-segment using Segment Anything 2 — AI-assisted labeling for Annotation Studio
$ npx skills add SharpAI/DeepCamera --skill segmentation-sam2 -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install SharpAI/DeepCamera segmentation-sam2 --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/SharpAI/DeepCamera.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/segmentation/sam2-segmentation .claude/skills/segmentation-sam2 && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "segmentation-sam2" agent skill from https://github.com/SharpAI/DeepCamera/tree/master/skills/segmentation/sam2-segmentation into .claude/skills/segmentation-sam2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "segmentation-sam2", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/SharpAI/DeepCamera/tree/master/skills/segmentation/sam2-segmentationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add SharpAI/DeepCamera --skill segmentation-sam2 -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install SharpAI/DeepCamera segmentation-sam2 --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SharpAI/DeepCamera.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/segmentation/sam2-segmentation .agents/skills/segmentation-sam2 && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "segmentation-sam2" agent skill from https://github.com/SharpAI/DeepCamera/tree/master/skills/segmentation/sam2-segmentation into .agents/skills/segmentation-sam2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "segmentation-sam2", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add SharpAI/DeepCamera --skill segmentation-sam2 -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install SharpAI/DeepCamera segmentation-sam2 --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SharpAI/DeepCamera.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/segmentation/sam2-segmentation .cursor/skills/segmentation-sam2 && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "segmentation-sam2" agent skill from https://github.com/SharpAI/DeepCamera/tree/master/skills/segmentation/sam2-segmentation into .cursor/skills/segmentation-sam2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "segmentation-sam2", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/SharpAI/DeepCamera.git --path skills/segmentation/sam2-segmentation--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add SharpAI/DeepCamera --skill segmentation-sam2 -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install SharpAI/DeepCamera segmentation-sam2 --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SharpAI/DeepCamera.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/segmentation/sam2-segmentation .gemini/skills/segmentation-sam2 && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "segmentation-sam2" agent skill from https://github.com/SharpAI/DeepCamera/tree/master/skills/segmentation/sam2-segmentation into .gemini/skills/segmentation-sam2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "segmentation-sam2", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install SharpAI/DeepCamera segmentation-sam2Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add SharpAI/DeepCamera --skill segmentation-sam2 -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/SharpAI/DeepCamera.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/segmentation/sam2-segmentation .github/skills/segmentation-sam2 && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "segmentation-sam2" agent skill from https://github.com/SharpAI/DeepCamera/tree/master/skills/segmentation/sam2-segmentation into .github/skills/segmentation-sam2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "segmentation-sam2", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add SharpAI/DeepCamera --skill segmentation-sam2 -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install SharpAI/DeepCamera segmentation-sam2 --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SharpAI/DeepCamera.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/segmentation/sam2-segmentation .opencode/skills/segmentation-sam2 && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "segmentation-sam2" agent skill from https://github.com/SharpAI/DeepCamera/tree/master/skills/segmentation/sam2-segmentation into .opencode/skills/segmentation-sam2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "segmentation-sam2", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
segmentation-sam2Interactive click-to-segment using Segment Anything 2 — AI-assisted labeling for Annotation Studio
Segmentation Sam2 is an agent skill from SharpAI/DeepCamera. Interactive click-to-segment using Segment Anything 2 — AI-assisted labeling for Annotation Studio
Its SKILL.md is about 590 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts (for example `deploy.sh` and `scripts/segment.py`).
It sits in AI & LLM Engineering, covering Computer vision. It works with Python. The repository describes itself as: Open-Source AI Camera Skills Platform, AI NVR & CCTV Surveillance. Local VLM video analysis with Qwen, DeepSeek, SmolVLM, LLaVA, YOLO26. LLM-powered agentic security camera agent… The licence is MIT.
Read from SKILL.md and the folder at commit 933dcc7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Batch, Shell and Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Segmentation Sam2 loads about 594 tokens when it runs. Until then it costs about 29 tokens; SKILL.md has 97 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from SharpAI/DeepCamera at commit 933dcc7, republished under its MIT licence (© SharpAI). 97 words, ~594 tokens.
.claude/skills/segmentation-sam2/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Click anywhere on a video frame to segment objects using Meta's Segment Anything 2. Generates pixel-perfect masks for annotation, tracking, and dataset creation.
Communicates via JSON lines over stdin/stdout.
{"event": "frame", "frame_path": "/tmp/frame.jpg", "frame_id": "frame_1", "request_id": "req_001"}
{"command": "segment", "points": [{"x": 450, "y": 320, "label": 1}], "request_id": "req_002"}
{"command": "track", "frame_path": "/tmp/frame2.jpg", "frame_id": "frame_2", "request_id": "req_003"}
{"command": "stop"}{"event": "segmentation", "type": "ready", "request_id": "", "data": {"model": "sam2-small", "device": "mps"}}
{"event": "segmentation", "type": "encoded", "request_id": "req_001", "data": {"frame_id": "frame_1", "width": 1920, "height": 1080}}
{"event": "segmentation", "type": "segmented", "request_id": "req_002", "data": {"mask_path": "/tmp/mask.png", "mask_b64": "...", "score": 0.95, "bbox": [100, 50, 350, 420]}}
{"event": "segmentation", "type": "tracked", "request_id": "req_003", "data": {"frame_id": "frame_2", "mask_path": "/tmp/track.png", "score": 0.93}}The deploy.sh bootstrapper handles everything — Python environment, GPU detection, dependency installation, and model download. No manual setup required.
./deploy.sh© SharpAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (scripts) in skills/segmentation/sam2-segmentation of SharpAI/DeepCamera.
Open the folder on GitHubat commit 933dcc7
Segmentation Sam2 next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Segmentation Sam2 this skillSharpAI/DeepCamera | 3.1k | — | ~594 | Automated safety check: Pass | MIT | |
| Segment Anything Model GuideOrchestra-Research/AI-Research-SKILLs | 13k | 9 repos | ~3.3k | Automated safety check: Pass | MIT | |
| CLIP Image-Text MatchingOrchestra-Research/AI-Research-SKILLs | 13k | 8 repos | ~1.7k | Automated safety check: Pass | MIT | |
| LLaVA Vision-Language ModelOrchestra-Research/AI-Research-SKILLs | 13k | 7 repos | ~2k | Automated safety check: Pass | MIT | |
| Hugging Face Vision Trainerhuggingface/skills | 11k | 1 repos | ~7.5k | Automated safety check: Pass | Apache-2.0 | |
| Hugging Face Transformers Usagedavila7/claude-code-templates | 32k | 12 repos | ~1.2k | Automated safety check: Pass | MIT |
Orchestra-Research/AI-Research-SKILLs
Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.
Orchestra-Research/AI-Research-SKILLs
Explains OpenAI's CLIP model for zero-shot image classification, image-text similarity, semantic image search and content moderation, with install steps and code patterns.
Orchestra-Research/AI-Research-SKILLs
Guide to LLaVA for image chat, visual question answering and captioning, with model sizes, CLI and Gradio usage and multi-turn conversation code.
huggingface/skills
Trains and fine-tunes object detection, image classification and SAM or SAM2 segmentation models on Hugging Face Jobs cloud GPUs and saves the results to the Hub.
davila7/claude-code-templates
Loads pre-trained Hugging Face Transformers models for text, vision and audio tasks, runs inference with pipelines and fine-tunes on custom datasets.
VectorSpaceLab/AREX-Skill
Use this sub-skill for Ultralytics YOLO predict workflows, source handling, streaming and batching, Results extraction, saving/plotting/cropping, and thread-safe inference.
SharpAI/DeepCamera
AI-assisted dataset annotation with COCO export — bbox, SAM2, DINOv3 methods
SharpAI/DeepCamera
Real-time depth map privacy transforms using Depth Anything v2 (CoreML + PyTorch)
SharpAI/DeepCamera
YOLO 2026 — state-of-the-art real-time object detection. An agent skill from SharpAI/DeepCamera.
SharpAI/DeepCamera
Google Coral Edge TPU — real-time object detection natively (macOS / Linux)
SharpAI/DeepCamera
Google Coral Edge TPU — real-time object detection natively via Windows WSL
SharpAI/DeepCamera
OpenVINO — real-time object detection via Docker (NCS2, Intel GPU, CPU)
Works with
Categories
Interactive click-to-segment using Segment Anything 2 — AI-assisted labeling for Annotation Studio. Segmentation Sam2 is an agent skill from SharpAI/DeepCamera.
Segmentation Sam2 fits situations like: tasks that involve Computer vision.
Run `npx skills add SharpAI/DeepCamera --skill segmentation-sam2 -a claude-code`. Or copy the skill folder (skills/segmentation/sam2-segmentation in SharpAI/DeepCamera) into .claude/skills/segmentation-sam2 in your project. Claude Code loads it when a task matches its description.
Run `npx skills add SharpAI/DeepCamera --skill segmentation-sam2 -a codex`. Or copy the skill folder (skills/segmentation/sam2-segmentation in SharpAI/DeepCamera) into .agents/skills/segmentation-sam2 in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SharpAI/DeepCamera --skill segmentation-sam2 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/segmentation-sam2, .gemini/skills/segmentation-sam2, .github/skills/segmentation-sam2 and .opencode/skills/segmentation-sam2 in your project.
Going by SKILL.md and its folder, Segmentation Sam2 needs Windows cmd, a shell and Python for the scripts in its folder. Our summary lists: Python 3; A Bash shell.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Segmentation Sam2 is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 594 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Segmentation Sam2: Segment Anything Model Guide (Orchestra-Research/AI-Research-SKILLs, 13k stars), CLIP Image-Text Matching (Orchestra-Research/AI-Research-SKILLs, 13k stars), LLaVA Vision-Language Model (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Hugging Face Vision Trainer (huggingface/skills, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
SharpAI (a GitHub organization) maintains it in SharpAI/DeepCamera, which has 3,089 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on September 17, 2026.
Source: SharpAI/DeepCamera on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.