vision-framework

Extract text, detect faces, scan barcodes, and segment objects from images and video in iOS apps.

Updated May 10, 2026
One-click install
npx skills add https://github.com/FelixRauch/medat-figuren --skill vision-framework-felixrauch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vision-framework
Source: https://github.com/FelixRauch/medat-figuren/tree/main/.agents/skills/vision-framework
Command: npx skills add https://github.com/FelixRauch/medat-figuren --skill vision-framework-felixrauch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps iOS apps reliably recognize text, detect faces, scan barcodes, and derive masks or regions from images and live camera frames, without writing bespoke computer-vision pipelines.

Core Features & Use Cases

  • OCR (Text Recognition): Extract printed or camera-captured text using the modern async Vision requests and confidence-scored results.
  • Face & Capture Analysis: Detect faces, landmarks, and capture quality for selecting or guiding better photos.
  • Barcode & Document Scanning: Read barcodes (including QR) and extract document text with layout-aware structure, plus camera scanning via VisionKit.
  • Segmentation, Tracking, and ML Inference: Generate person/object masks, track objects across frames, and run custom Core ML models through Vision.
  • Use Case: When users point a camera at printed medication labels during a self-check workflow, apply text recognition for key fields, scan a QR for context, and use structured confidence thresholds to drive the next UI step.

Quick Start

Use the vision-framework skill to design a modern iOS 18+ OCR and barcode detection flow by calling Vision requests with async/await on a CGImage or CMSampleBuffer and converting bounding boxes to UIKit coordinates for display.

Frequently Asked Questions about vision-framework

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from an image using the Vision framework in SwiftUI?

OCR and text recognition extract printed or camera-captured text by calling modern async Vision requests on a CGImage or CMSampleBuffer and returning confidence-scored results for display.

Can I use VisionKit to scan barcodes and documents in an iOS camera workflow?

Barcode and document scanning read barcodes including QR codes and extract document text with layout-aware structure using VisionKit camera scanning to capture and process physical items.

Does the Vision framework support person segmentation and object tracking across video frames?

Segmentation and tracking generate person or object masks and track objects across sequential video frames to produce continuous detection outputs for live camera processing.

What is the best way to handle coordinate conversion for Vision bounding boxes in UIKit?

Coordinate conversion maps normalized Vision bounding boxes to UIKit display coordinates, requiring correct transformation logic to accurately render detection rectangles over images or camera feeds.

Can I run custom Core ML models through the Vision framework for inference?

Custom Core ML inference runs specialized machine learning models through Vision requests to process images or video frames and return classification or prediction outputs.

Do I need to support legacy VNRequest patterns when implementing Vision text recognition?

Implementing Vision text recognition requires supporting both modern typed async Vision requests and legacy VNRequest patterns to ensure compatibility across different iOS application architectures.