TechnologiesMachine Learning & AI

VisionKit

iOSmacOStvOSwatchOSvisionOS

VisionKit lets you add document scanning, text and data recognition, and visual lookup to your app using the device camera. Present a VNDocumentCameraViewController and respond through VNDocumentCameraViewControllerDelegate to capture multi-page documents as a VNDocumentCameraScan. Use ImageAnalyzer to run an ImageAnalysis over an image and surface live text and detected content, working with each RecognizedItem the analysis returns. VisionKit is available on iOS, macOS, and visionOS.

Document Scanning 3

Present the camera scanner and capture multi-page documents as page images.

  • Cl
    VNDocumentCameraViewControlleriOS 13.0+
    A view controller that shows what the document camera sees.
  • Pr
    VNDocumentCameraViewControllerDelegateiOS 13.0+
    A delegate protocol through which the document camera returns its scanned
  • Cl
    VNDocumentCameraScaniOS 13.0+
    A single document scanned in the document camera.

Image Analysis 2

Analyze images to surface live text and detected content from the camera or photos.

  • Cl
    ImageAnalyzeriOS 16.0+
    An object that finds items in images that people can interact with, such
  • Cl
    ImageAnalysisiOS 16.0+
    An object that represents the results of analyzing an image, and provides

Recognized Content 1

Inspect the individual items of text and data that an analysis recognizes.

  • En
    RecognizedItem
    An item that the data scanner recognizes in the camera’s live video.

Classes 2

  • Cl
    DataScannerViewController
    An object that scans the camera live video for text, data in text, and
  • Cl
    ImageAnalysisInteractioniOS 16.0+
    An interface that enables people to interact with recognized text, barcodes, and other objects in an image.

Structures 1

  • St
    CameraRegionView
    This view displays a stabilized region of interest within a person's view and

Protocols 2

  • Pr
    DataScannerViewControllerDelegate
    A delegate object that responds when people interact with items that the data
  • Pr
    ImageAnalysisInteractionDelegateiOS 16.0+
    A delegate that handles image-analysis and user-interaction callbacks for an interaction object.
← Machine Learning & AI