MLHandActionClassifier.DataSource.labeledVideoData(table:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)
Creates a data source from a data table that contains the location and annotation for a set of video files.
Declaration
case labeledVideoData(table: MLDataTable, videoColumn: String = __Defaults.videoColumnName, labelColumn: String = __Defaults.labelColumnName, startTimeColumn: String? = nil, endTimeColumn: String? = nil)Parameters
- table:
A data table that contains the locations of annotations for each hand action video file.
- videoColumn:
The name of the column in the data table that contains the video filenames.
- labelColumn:
The name of the column in the data table that contains the hand action label names.
- startTimeColumn:
The name of the column in the data table that contains the hand action’s starting-time index in the video file. Otherwise
nil, if every video example starts at the beginning of the video file.
Discussion
endTimeColumn: The name of the column in the data table that contains the hand action’s ending-time in the video file. Otherwise
nil, if every video example ends at the end of the video file.
See Also
Creating a data source
MLHandActionClassifier.DataSource.labeledDirectories(at:)MLHandActionClassifier.DataSource.labeledFiles(at:)MLHandActionClassifier.DataSource.directoryWithVideosAndAnnotation(at:annotationFile:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)MLHandActionClassifier.DataSource.labeledVideoDataFrame(_:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)MLHandActionClassifier.DataSource.labeledKeypointsDataFrame(_:sessionIdColumn:labelColumn:featureColumn:)MLHandActionClassifier.DataSource.labeledKeypointsData(table:sessionIdColumn:labelColumn:featureColumn:)