<!--
{
  "availability" : [
    "macOS: 10.15.0 - 14.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLObjectDetector/DataSource/imagesWithObjectAnnotations()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML16MLObjectDetectorV10DataSourceO27imagesWithObjectAnnotationsAA11MLDataTableVyKF"
  },
  "title" : "imagesWithObjectAnnotations()"
}
-->

# imagesWithObjectAnnotations()

Generates a data table where each row represents an image, and its columns are the image file URLs and its
annotations.

```
func imagesWithObjectAnnotations() throws -> MLDataTable
```

## Return Value

An [`MLDataTable`](/documentation/CreateML/MLDataTable) containing the contents of the data source.

---

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)