<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VisionKit",
  "identifier" : "/documentation/VisionKit/ImageAnalyzer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "s:9VisionKit13ImageAnalyzerC"
  },
  "title" : "ImageAnalyzer"
}
-->

# ImageAnalyzer

An object that finds items in images that people can interact with, such
as subjects, text, and QR codes.

```
final class ImageAnalyzer
```

## Overview

To use an `ImageAnalyzer` object, first create an
[`ImageAnalyzer.Configuration`](/documentation/VisionKit/ImageAnalyzer/Configuration) object, and specify the types of items you
want to find in an image. Then pass the image you want to analyze and the
configuration object to an `ImageAnalyzer` object using the
[`analyze(_:configuration:)`](/documentation/VisionKit/ImageAnalyzer/analyze(_:configuration:)) or similar method. This method
returns an [`ImageAnalysis`](/documentation/VisionKit/ImageAnalysis) object that contains all the data VisionKit
needs to implement the Live Text interface.

Next, show the Live Text interface. For iOS apps, set the
interaction object of the view that contains the image to an instance of
[`ImageAnalysisInteraction`](/documentation/VisionKit/ImageAnalysisInteraction) and set its
[`analysis`](/documentation/VisionKit/ImageAnalysisInteraction/analysis) property to the `ImageAnalysis`
object. To enable interactions with the image, set the interaction object’s
[`preferredInteractionTypes`](/documentation/VisionKit/ImageAnalysisInteraction/preferredInteractionTypes) property. To
customize the Live Text interface, set the `ImageAnalysisInteraction `object’s [`delegate`](/documentation/VisionKit/ImageAnalysisInteraction/delegate) property and implement the
[`ImageAnalysisInteractionDelegate`](/documentation/VisionKit/ImageAnalysisInteractionDelegate) protocol methods.

For macOS apps, add an `ImageAnalysisOverlayView` object above the view that
contains the image, and set its `analysis` property. To enable interactions
with the image, set the overlay view’s `preferredInteractionTypes` property.
Set the `ImageAnalysisOverlayView `object’s `delegate` property and
implement the `ImageAnalysisOverlayViewDelegate` protocol methods.

By default, the Live Text interface starts immediately when you show the
view.

## Topics

### Handling availability

[`isSupported`](/documentation/VisionKit/ImageAnalyzer/isSupported)

A Boolean value that indicates whether the device supports image analysis.

[`supportedTextRecognitionLanguages`](/documentation/VisionKit/ImageAnalyzer/supportedTextRecognitionLanguages)

The identifiers for the languages that the image analyzer recognizes.

### Creating image analyzers

[`init()`](/documentation/VisionKit/ImageAnalyzer/init())

Creates an image analyzer that identifies subjects, text, and machine-readable codes in
images.

### Configuring image analyzers

[`ImageAnalyzer.Configuration`](/documentation/VisionKit/ImageAnalyzer/Configuration)

A configuration that specifies the types of items and locales that the
image analyzer recognizes.

### Finding items in images

[`analyze(_:configuration:)`](/documentation/VisionKit/ImageAnalyzer/analyze(_:configuration:))

Returns the data for providing a Live Text interaction with an image.

[`analyze(_:orientation:configuration:)`](/documentation/VisionKit/ImageAnalyzer/analyze(_:orientation:configuration:)-5bs2w)

Returns the data for providing a Live Text interaction with an image in
the specified orientation.

[`analyze(_:orientation:configuration:)`](/documentation/VisionKit/ImageAnalyzer/analyze(_:orientation:configuration:)-ufrs)

Returns the data for providing a Live Text interaction with a Core
Graphics image in the specified orientation.

[`analyze(_:orientation:configuration:)`](/documentation/VisionKit/ImageAnalyzer/analyze(_:orientation:configuration:)-2ezqw)

Returns the data for providing a Live Text interaction with a pixel
buffer image in the specified orientation.

[`analyze(_:orientation:configuration:)`](/documentation/VisionKit/ImageAnalyzer/analyze(_:orientation:configuration:)-4h43g)

Returns the data for providing a Live Text interaction with a bitmap
image in the specified orientation.

[`analyze(_:orientation:configuration:)`](/documentation/VisionKit/ImageAnalyzer/analyze(_:orientation:configuration:)-fcjz)

Returns the data for providing a Live Text interaction with an image in
the specified orientation.

[`analyze(imageAt:orientation:configuration:)`](/documentation/VisionKit/ImageAnalyzer/analyze(imageAt:orientation:configuration:))

Returns the data for providing a Live Text interaction with an image at
a URL and in the specified orientation.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)