Vision Framework API Reference
A lookup reference for the Vision and VisionKit APIs, with related Visual Intelligence and Sensitive Content Analysis APIs. It's for developers who know what they want to detect and need the request, its result type, and its limits.
When to Use This Reference
Use this reference when you need:
- The request for a task and the observation type it returns
- Landmark names and group keys for hands or bodies
- Text recognition levels, languages, or barcode symbologies and revisions
- Configuration and delegate methods for the live scanner or document camera
- The requests that exist on Apple Watch
- The types that connect your app to Visual Intelligence
- Sensitive Content Analysis results, entitlement, and testing steps
Example Prompts
Questions you can ask your assistant that will draw from this reference:
- "Which observation does VNDetectHumanBodyPoseRequest return, and how many joints?"
- "What are the group keys for hand landmarks?"
- "How do I create a mask for just one detected subject?"
- "When should I use VNSequenceRequestHandler?"
- "How do I limit DataScannerViewController to EAN-13 barcodes?"
- "How do I read table cells from a DocumentObservation?"
- "Which Vision requests work on watchOS 27?"
- "How does my app return results to Visual Intelligence?"
- "Why does Sensitive Content Analysis never flag anything in my app?"
What's Covered
Request Handlers
VNImageRequestHandler,VNSequenceRequestHandler, and when each applies- The modern Swift
ImageRequestHandlerand typed async requests
Subject and Person Segmentation
VNGenerateForegroundInstanceMaskRequest,InstanceMaskObservation, mask generation, instance hit testingVNGeneratePersonSegmentationRequest,VNGeneratePersonInstanceMaskRequest(up to four people)ImageAnalysisInteraction,ImageAnalysisOverlayView,ImageAnalyzer,Subject- Core Image compositing with
CIBlendWithMask
Tap-to-Segment (27 releases, not watchOS)
GenerateIterativeSegmentationRequest: point, box, and scribble seeds, then refinementDownloadableAssetsRequest:assetStatus,downloadAssets
Pose
VNDetectHumanHandPoseRequest(21 landmarks per hand), group keys, chiralityVNDetectHumanBodyPoseRequest(19 landmarks, 2D), group keysVNDetectHumanBodyPose3DRequest(17 joints, in meters), 3D point classes, depth input
Faces and People
VNDetectFaceRectanglesRequest,VNDetectFaceLandmarksRequest,VNDetectHumanRectanglesRequest
Text and Barcodes
VNRecognizeTextRequest, recognition levels, languages,VNRecognizedTextObservation,VNRecognizedTextVNDetectBarcodesRequest, symbologies, revisions,VNBarcodeObservation
Scanners and Documents
DataScannerViewController(not Mac Catalyst): availability, data types, delegate, async stream, custom highlightsVNDocumentCameraViewController,VNDocumentCameraScanVNDetectDocumentSegmentationRequest,RecognizeDocumentsRequest,DocumentObservation, tables, detected data types
Visual Intelligence (iPhone; iPad and Mac from the 27 releases)
SemanticContentDescriptor,IntentValueQuery, display representations, deep links- The
semanticContentSearchschema for "More results", and feature-print matching - System store integrations through EventKit, Contacts, and HealthKit
Vision on watchOS 27
- The modern Swift subset: faces, classification, segmentation, saliency, barcodes, feature prints, tracking
- What's missing: the
VNclasses, text recognition, every pose request, optical flow, and tap-to-segment
Vision Tools for Foundation Models (27 releases)
BarcodeReaderTool(not tvOS),OCRTool(not watchOS or tvOS)
Sensitive Content Analysis (not watchOS or tvOS)
SCSensitivityAnalyzer,analysisPolicy,isSensitive,detectedTypes(27 releases)- The required entitlement, the user setting that gates results, the rule that results stay on the device, and test profiles
Quick Reference
- Tables of requests by task, and of observation types by request
Documentation Scope
This page documents the vision-ref skill (in the axiom-vision suite). The skill has the signatures, code, and full property lists behind each name here.
- For choosing an API and working patterns, see vision-framework
- For problems with results, speed, or coordinates, see vision-diag
Related
- camera-capture-ref – Capture session APIs that supply the frames you analyze
- app-intents-ref – Entities and intents behind a Visual Intelligence integration
- foundation-models-ref – Sessions and tools that use the Vision tools
- coreml-ref – Running your own model instead of a built-in request
Resources
WWDC: 2019-234, 2020-10043, 2020-10099, 2020-10653, 2021-10041, 2022-10024, 2022-10025, 2023-10048, 2023-10176, 2023-111241, 2025-272, 2026-237, 2026-297
Docs: /vision, /visionkit, /visualintelligence, /sensitivecontentanalysis