Contents

MLHandActionClassifier.DataSource.labeledVideoDataFrame(_:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)

Creates a data source from a data frame that contains the location and annotation for a set of video files.

Declaration

case labeledVideoDataFrame(DataFrame, videoColumn: String = __Defaults.videoColumnName, labelColumn: String = __Defaults.labelColumnName, startTimeColumn: String? = nil, endTimeColumn: String? = nil)

Parameters

  • dataFrame:

    A data frame that contains the locations of annotations for each hand action video file.

  • videoColumn:

    The name of the column in the data frame that contains the video filenames.

  • labelColumn:

    The name of the column in the data frame that contains the hand action label names.

  • startTimeColumn:

    The name of the column in the data frame 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.

  • endTimeColumn:

    The name of the column in the data frame 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