# vision-framework

A skill for adding text recognition, face detection and barcode scanning to iOS apps. Useful when you need OCR or live camera scanning.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3800 installs · ★ 1237
- Author: dpearson2699
- License: LicenseRef-Unknown · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dpearson2699/swift-ios-skills/tree/HEAD/skills/vision-framework/SKILL.md
- Updated: 2026-07-31
- HTML: https://affpapa.org/en/nevibecode/skills/vision-framework

## What it does

The skill covers Vision on iOS: text recognition, face and landmark detection, barcodes and QR codes, image segmentation, object tracking, document scanning. There is a Core ML section too, for running your own models through `CoreMLRequest` and `VNCoreMLRequest`.

Two API generations are documented. Modern Swift types such as `RecognizeTextRequest` and `DetectFaceRectanglesRequest` use `try await request.perform(on:)` and start at iOS 18. The legacy layer on `VNRequest` and `VNImageRequestHandler` stays relevant when your deployment target is lower. The skill suggests keeping legacy code in separate files or sections.

Vision coordinates are normalized with the origin at the bottom-left, so convert them to UIKit before drawing. For live camera scanning there is `DataScannerViewController` from VisionKit. Structured document reading with tables and lists arrived in iOS 26.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill vision-framework -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/vision-framework/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/vision-framework/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill vision-framework -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/vision-framework/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill vision-framework -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/vision-framework/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dpearson2699/swift-ios-skills vision-framework
```

2. **Manually: put the files in place**
- File: `.github/skills/vision-framework/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill vision-framework -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dpearson2699/swift-ios-skills --path skills/vision-framework
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/vision-framework/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill vision-framework -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dpearson2699/swift-ios-skills/tree/HEAD/skills/vision-framework/SKILL.md

## When to use it
- pull text out of a photo with confidence scores
- find faces and landmarks in an image
- read a QR or barcode from a camera frame
- cut a person out of the background
- run a custom Core ML model through Vision

## Example prompts
- add Vision OCR to my scanning screen
- I need DataScannerViewController for live QR reading
- convert a face bounding box to UIKit coordinates

## Similar
- [axiom-vision](https://affpapa.org/en/nevibecode/skills/axiom-vision.md) — skill · 1800 installs
- [vision](https://affpapa.org/en/nevibecode/skills/vision.md) — skill · 13400 installs
- [qianwen-vision](https://affpapa.org/en/nevibecode/skills/qianwen-vision.md) — skill · 5700 installs
- [vision-analysis](https://affpapa.org/en/nevibecode/skills/vision-analysis.md) — skill · 2700 installs
- [qwencloud-vision](https://affpapa.org/en/nevibecode/skills/qwencloud-vision.md) — skill · 1800 installs
- [vision-multimodal](https://affpapa.org/en/nevibecode/skills/vision-multimodal.md) — skill · 550 installs

From the same set: [dpearson2699/swift-ios-skills](https://affpapa.org/en/nevibecode/by/dpearson2699/swift-ios-skills.md) — 86 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
