vision-framework

Build iOS apps with Vision, VisionKit, and Core ML for OCR, face detection, barcode scanning, segmentation, and tracking.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/onymchat/onym-ios --skill vision-framework-onymchat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vision-framework
Source: https://github.com/onymchat/onym-ios/tree/main/.claude/skills/vision-framework
Command: npx skills add https://github.com/onymchat/onym-ios --skill vision-framework-onymchat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

On-device computer vision capabilities are complex to implement and require coordinating multiple APIs for OCR, face detection, barcode scanning, segmentation, and document scanning. This Skill consolidates these tasks using Vision, VisionKit, and Core ML to deliver reliable, offline-capable vision features in iOS apps.

Core Features & Use Cases

  • OCR/text recognition and extraction from images or video frames
  • Face detection with landmarks and pose cues for interactive experiences
  • Barcode scanning across common symbologies for quick data capture
  • Image segmentation and instance segmentation for visuals and selective effects
  • Core ML integration to run custom models alongside Vision
  • VisionKit DataScannerViewController support for live camera scanning

Quick Start

Create a sample iOS module that uses Vision to perform OCR, face detection, and barcode scanning on a given image.

Frequently Asked Questions about vision-framework

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

FAQPage Schema
How do I implement on-device OCR and barcode scanning in my iOS app?

On-device OCR and barcode scanning in iOS apps can be implemented using the Vision and VisionKit frameworks to extract text and capture data without requiring a network connection. This configuration exposes these features through the modern ImageProcessingRequest pattern and DataScannerViewController for live camera feeds.

What is the difference between the modern Vision API and legacy VNRequest patterns?

The modern Vision API uses the ImageProcessingRequest pattern available on iOS 16+, while legacy VNRequest patterns provide backward compatibility for older iOS deployments. Both approaches handle computer vision tasks like face detection and segmentation, but the modern path is required for advanced VisionKit features.

Does VisionKit DataScannerViewController work for live camera scanning on older iOS versions?

VisionKit DataScannerViewController for live camera scanning requires iOS 16 or later and does not work on older iOS versions. For older deployments, you must use the legacy VNRequest path to achieve similar computer vision functionality without the modern VisionKit interface.

Can I run custom Core ML models alongside Vision for image segmentation?

You can run custom Core ML models alongside Vision to perform image segmentation and instance segmentation tasks. This integration allows you to combine built-in Vision capabilities with specialized models for selective visual effects and object tracking within your iOS application workflow.

What is the best way to add face detection with landmarks to an iOS application?

Adding face detection with landmarks to an iOS application is best handled through the Vision framework to capture pose cues for interactive experiences. This approach coordinates Vision requests alongside OCR and barcode scanning to consolidate multiple computer vision features into a single reliable module.