<!--
{
  "availability" : [
    "macOS: 11.0.0 - 14.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLObjectDetector/DataSource/table(_:imageColumn:annotationColumn:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML16MLObjectDetectorV10DataSourceO5tableyAeA11MLDataTableV_S2StcAEmF"
  },
  "title" : "MLObjectDetector.DataSource.table(_:imageColumn:annotationColumn:)"
}
-->

# MLObjectDetector.DataSource.table(_:imageColumn:annotationColumn:)

An object-detector data source you create with a data table.

```
case table(MLDataTable, imageColumn: String, annotationColumn: String)
```

## Parameters

`table`

An [`MLDataTable`](/documentation/CreateML/MLDataTable) instance that contains a column of image file locations and a column of
object annotations.

`imageColumn`

The name of the column in the data table that contains the URL for an image.

`annotationColumn`

The name of the column in the data table that contains the object annotations for an
image.

---

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)