MLActionClassifier.DataSource.labeledVideoDataFrame(_:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)
A data source made up of video references in a data frame.
Declaration
case labeledVideoDataFrame(DataFrame, videoColumn: String = __Defaults.videoColumnName, labelColumn: String = __Defaults.labelColumnName, startTimeColumn: String? = nil, endTimeColumn: String? = nil)Parameters
- dataFrame:
A
DataFramecontaining video paths and labels. - videoColumn:
The name of the column containing the video paths. Defaults to “videoPath”.
- labelColumn:
The name of the column containing the labels. Defaults to “label”.
- startTimeColumn:
The name of the column containing the start time. If
nilstart time is 0. - endTimeColumn:
The name of the column containing the end time. If
nilend time is the end of the video.
Discussion
The data frame must contain a column of video file paths and a column of labels. It can also contain columns with start and end times.