视频数据集助手
用于将csv + mp4 转为视频数据集
SampleCode:
//创建实例,参数(上下文,数据源Datasource)
VideoDatasetVectorHelper videoDatasetVectorHelper = new VideoDatasetVectorHelper(this, datasources.get(0));
try {
//读取视频资源(文件全路径)
videoDatasetVectorHelper.readVideo(SD_CARD+"/UAVSurvey/Common/2022_05_16_15_51_51.mp4");
} catch (FileNotFoundException e) {
e.printStackTrace();
}
try {
//读取csv资源(文件全路径)
videoDatasetVectorHelper.readCsv(SD_CARD+"/UAVSurvey/Common/2022_05_16_15_51_51.csv");
} catch (IOException e) {
e.printStackTrace();
}
//创建视频数据集
DatasetVector datasetVector = videoDatasetVectorHelper.createDatasetVector("NewVideoDatasetVector");
|