<!--
{
  "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/Configuration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "s:9VisionKit13ImageAnalyzerC13ConfigurationV"
  },
  "title" : "ImageAnalyzer.Configuration"
}
-->

# ImageAnalyzer.Configuration

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

```
struct Configuration
```

## Overview

Create an `ImageAnalyzer.Configuration` structure to specify the
criteria when analyzing an image. Then pass the configuration object to
the `ImageAnalyzer` [`analyze(_:configuration:)`](/documentation/VisionKit/ImageAnalyzer/analyze(_:configuration:)) or
similar method to find the items you want.

## Topics

### Creating configurations

[`init(ImageAnalyzer.AnalysisTypes)`](/documentation/VisionKit/ImageAnalyzer/Configuration/init(_:))

Creates a configuration that an image analyzer uses to find items.

[`let analysisTypes: ImageAnalyzer.AnalysisTypes`](/documentation/VisionKit/ImageAnalyzer/Configuration/analysisTypes)

The types of items that the image analyzer looks for in the image.

[`struct AnalysisTypes`](/documentation/VisionKit/ImageAnalyzer/AnalysisTypes)

The types of items that an image analyzer looks for in an image.

### Recognizing languages

[`var locales: [String]`](/documentation/VisionKit/ImageAnalyzer/Configuration/locales)

The languages to use in text items that the image analyzer
recognizes.



---

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)