<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNTargetedImageRequest/init(targetedImageData:options:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:objc(cs)VNTargetedImageRequest(im)initWithTargetedImageData:options:completionHandler:"
  },
  "title" : "init(targetedImageData:options:completionHandler:)"
}
-->

# init(targetedImageData:options:completionHandler:)

Creates a new request targeting an image as raw data, executing the completion handler when done.

```
init(targetedImageData imageData: Data, options: [VNImageOption : Any] = [:], completionHandler: VNRequestCompletionHandler? = nil)
```

## Parameters

`imageData`

The data containing the targeted image.

`options`

A dictionary with options specifying auxiliary information for the image.

`completionHandler`

The block to invoke when the request has finished executing.

## Discussion

---

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)