MLHandPoseClassifier.DataSource.directoryWithImagesAndAnnotation(at:annotationFile:imageColumn:labelColumn:)
Creates a data source from a folder that contains images and an annotation file.
Declaration
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.
See Also
Creating a data source
MLHandPoseClassifier.DataSource.labeledDirectories(at:)MLHandPoseClassifier.DataSource.labeledFiles(at:)MLHandPoseClassifier.DataSource.labeledImageDataFrame(_:imageColumn:labelColumn:)MLHandPoseClassifier.DataSource.labeledKeypointsDataFrame(_:sessionIdColumn:labelColumn:featureColumn:)MLHandPoseClassifier.DataSource.labeledImageData(table:imageColumn:labelColumn:)MLHandPoseClassifier.DataSource.labeledKeypointsData(table:sessionIdColumn:labelColumn:featureColumn:)