<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLHandPoseClassifier/DataSource/directoryWithImagesAndAnnotation(at:annotationFile:imageColumn:labelColumn:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML20MLHandPoseClassifierV10DataSourceO32directoryWithImagesAndAnnotationyAE10Foundation3URLV_AIS2StcAEmF"
  },
  "title" : "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.

```
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

- 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.

---

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)