<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaIntelligence",
  "identifier" : "/documentation/MediaIntelligence/FaceGroupAnalyzer/init(workingDirectory:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Media Intelligence"
    ],
    "preciseIdentifier" : "s:17MediaIntelligence17FaceGroupAnalyzerC16workingDirectoryAC10Foundation3URLV_tKcfc"
  },
  "title" : "init(workingDirectory:)"
}
-->

# init(workingDirectory:)

Creates a face group analyzer at the specified directory.

```
init(workingDirectory: URL) throws
```

## Parameters

`workingDirectory`

The directory where the analyzer
stores its face data and metadata. The directory must already
exist.

## Discussion

The analyzer loads any existing face data from `workingDirectory`
on initialization, so subsequent runs resume from where the
previous session ended.

---

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)