---
title: "MLObjectDetector.DataSource.table(_:imageColumn:annotationColumn:)"
framework: createml
role: symbol
role_heading: Case
path: "createml/mlobjectdetector/datasource/table(_:imagecolumn:annotationcolumn:)"
---

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

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

## Declaration

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

## Parameters

- `table`: An doc://com.apple.createml/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.

## See Also

### Creating a data source

- [MLObjectDetector.DataSource.directoryWithImagesAndJsonAnnotation(at:)](createml/mlobjectdetector/datasource/directorywithimagesandjsonannotation(at:).md)
- [MLObjectDetector.DataSource.directoryWithImages(at:annotationFile:)](createml/mlobjectdetector/datasource/directorywithimages(at:annotationfile:).md)
