What problem does it solve?
Provide a comprehensive, ready-to-use set of patterns and best practices for adding on-device computer vision to iOS apps, removing the friction of integrating OCR, barcode scanning, face detection, segmentation, object tracking, and document scanning across camera and image pipelines.
Core Features & Use Cases
- Text Recognition (OCR): Accurate and fast text extraction for photos, scanned documents, and live camera feeds with language hints and recognition level tuning.
- Detection & Tracking: Face rectangles, landmarks, barcode recognition, rectangle/document detection, and stateful object tracking across video frames.
- Image Segmentation & Core ML: Person and instance segmentation masks, integration patterns for custom Core ML models, and mask composition with Core Image.
- VisionKit Integration: DataScannerViewController and VNDocumentCameraViewController patterns for live scanning, SwiftUI wrappers, and permission handling.
- Performance & Safety: Coordinate normalization utilities, threading guidance (avoid main thread), and recommendations for recognition level and resource reuse.
Quick Start
Use the vision-framework skill to extract text, barcodes, and person masks from an example camera frame and return normalized bounding boxes for UI overlay.