Builds or reviews iOS computer-vision features using Vision and VisionKit, covering OCR, barcode/document scanning, face/object detection, segmentation, tracking, and Core ML inference. Useful for Vision requests, live DataScanner flows, or Vision/Core ML integration.
Ships in all-ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Detect text, faces, barcodes, objects, contours, and poses in images and live video using Apple's on-device computer vision frameworks (Vision and VisionKit). Targets Swift 6.4 / iOS 26+.
| Dimension | Modern Vision (iOS 18+) | Legacy Vision (pre-iOS 18) |
|---|---|---|
| Request Types | Swift structs (RecognizeTextRequest, DetectBarcodesRequest) | ObjC classes (VNRecognizeTextRequest, VNDetectBarcodesRequest) |
| Execution | try await request.perform(on: image) | VNImageRequestHandler(cgImage:).perform([request]) |
| Results | Strongly typed observation arrays | request.results as? [VNBarcodeObservation] |
| Concurrency | Native async/await | Completion handlers or synchronous blocking calls |
Prefer modern Swift-native request structs for new code. Maintain legacy handlers only when supporting deployment targets below iOS 18.
All modern requests conform to ImageProcessingRequest:
import Vision
var request = RecognizeTextRequest()
request.recognitionLevel = .accurate
request.recognitionLanguages = [Locale.Language(identifier: "en-US")]
let observations = try await request.perform(on: cgImage)
for observation in observations {
print("Found text: \(observation.topCandidates(1).first?.string ?? "")")
}
Vision observations express bounding boxes in normalized coordinates (0.0...1.0) with origin at the bottom-left corner (Cartesian), while UIKit/SwiftUI places origin at the top-left.
To convert to UIKit/SwiftUI coordinates:
let rect = VNImageRectForNormalizedRect(observation.boundingBox, Int(viewWidth), Int(viewHeight))
// Flip Y-axis: y = viewHeight - rect.origin.y - rect.size.height
Run custom Core ML vision models using CoreMLModelContainer:
.mlpackage or .mlmodelc).CoreMLModelContainer(model: compiledModel).var request = ImageFeaturePrintRequest() or custom Core ML classification request.DataScannerViewController, read VisionKit Scanner..accurate text recognition) synchronously on the main thread.UIImage directly without extracting cgImage or preserving image orientation metadata.DataScannerViewController without checking DataScannerViewController.isSupported and isAvailable.TrackObjectRequest) across unrelated image sequences.RecognizeTextRequest) preferred on iOS 18+ targetsperform(on:orientation:)DataScannerViewController.isSupported before presentation@MainActorWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ios, computer-vision, ocr, barcode-scanning, core-ml, object-detection
95 skills in this plugin
/accessorysetupkitDiscover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions./activitykitBuild or review Live Activities and Dynamic Island experiences with ActivityKit, including lifecycle, layouts, push updates, and scheduled delivery. Use for time-sensitive Lock Screen or Dynamic Island state; route ordinary widgets to widgetkit./adattributionkitMeasure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement./all-ios-skills:vision-frameworkfrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skillsOther plugins' skills for the same job