---
title: "MLHandPoseClassifier.DataSource.directoryWithImagesAndAnnotation(at:annotationFile:imageColumn:labelColumn:)"
framework: createml
role: symbol
role_heading: Case
path: "createml/mlhandposeclassifier/datasource/directorywithimagesandannotation(at:annotationfile:imagecolumn:labelcolumn:)"
---

# MLHandPoseClassifier.DataSource.directoryWithImagesAndAnnotation(at:annotationFile:imageColumn:labelColumn:)

Creates a data source from a folder that contains images and an annotation file.

## Declaration

```swift
case directoryWithImagesAndAnnotation(at: URL, annotationFile: URL, imageColumn: String, labelColumn: String)
```

## Parameters

- `at`: A URL to a folder in the file system that contains images.

## Discussion

Discussion annotationFile: A URL to a JSON or CSV file that contains annotations for the hand pose images. imageColumn: The name of the column or key name in the annotation file that contains the image filenames. labelColumn: The name of the column or key name in the annotation file that contains the hand pose label names.

## See Also

### Creating a data source

- [MLHandPoseClassifier.DataSource.labeledDirectories(at:)](createml/mlhandposeclassifier/datasource/labeleddirectories(at:).md)
- [MLHandPoseClassifier.DataSource.labeledFiles(at:)](createml/mlhandposeclassifier/datasource/labeledfiles(at:).md)
- [MLHandPoseClassifier.DataSource.labeledImageDataFrame(_:imageColumn:labelColumn:)](createml/mlhandposeclassifier/datasource/labeledimagedataframe(_:imagecolumn:labelcolumn:).md)
- [MLHandPoseClassifier.DataSource.labeledKeypointsDataFrame(_:sessionIdColumn:labelColumn:featureColumn:)](createml/mlhandposeclassifier/datasource/labeledkeypointsdataframe(_:sessionidcolumn:labelcolumn:featurecolumn:).md)
- [MLHandPoseClassifier.DataSource.labeledImageData(table:imageColumn:labelColumn:)](createml/mlhandposeclassifier/datasource/labeledimagedata(table:imagecolumn:labelcolumn:).md)
- [MLHandPoseClassifier.DataSource.labeledKeypointsData(table:sessionIdColumn:labelColumn:featureColumn:)](createml/mlhandposeclassifier/datasource/labeledkeypointsdata(table:sessionidcolumn:labelcolumn:featurecolumn:).md)
