One Logo Pool Ball
VisionKit · IOS API REFERENCE

ImageAnalyzer.Configuration

struct · iOS 16.0+ · SDK 27.1

struct Configuration

A configuration that specifies the types of items and locales that the image analyzer recognizes. Create an `ImageAnalyzer.Configuration` structure to specify the criteria when analyzing an image. Then pass the configuration object to the `ImageAnalyzer` ``ImageAnalyzer/analyze(_:configuration:)`` or similar method to find the items you want.

Members (4)

get · iOS 16.0+

analysisTypes

TypeScript
get analysisTypes(): ImageAnalyzer_AnalysisTypes
Swift declaration
let analysisTypes: ImageAnalyzer.AnalysisTypes

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

get · iOS 16.0+

locales

TypeScript
get locales(): Array<string>
Swift declaration
var locales: [String]

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

set · iOS 16.0+

locales

TypeScript
set locales(value: Array<string>)
Swift declaration
var locales: [String]

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

init · iOS 16.0+

init

TypeScript
static init(types: ImageAnalyzer_AnalysisTypes): ImageAnalyzer_Configuration
Swift declaration
init(_ types: ImageAnalyzer.AnalysisTypes)

Creates a configuration that an image analyzer uses to find items. - Parameter types: The types of items that an image analyzer looks for in the image.

Skipped declarations

No declarations were skipped in this snapshot.

All VisionKit types →