Matlab Script to pre-process UAV123 tracking dataset

2019-11-08 09:43:11

Official project pagehttps://ivul.kaust.edu.sa/Pages/Dataset-UAV123.aspx

A Benchmark and Simulator for UAV Tracking

Details

Video captured from low-altitude UAVs is inherently different from video in popular tracking datasets like OTB50, OTB100, VOT2014, VOT2015, TC128, and ALOV300++. Therefore, we propose a new dataset (UAV123) with sequences from an aerial viewpoint, a subset of which is meant for long-term aerial tracking (UAV20L). Our new UAV123 dataset contains a total of 123 video sequences and more than 110K frames making it the second largest object tracking dataset after ALOV300++. All sequences are fully annotated with upright bounding boxes. The dataset can easily be integrated with the visual tracker benchmark. It includes all bounding box and attribute annotations for the UAV dataset. Please also download the modified tracker benchmark with the modified  files "configSeqs.m" and "configTrackers.m" containing the sequence and tracker configuration. Also note that the file "perfPlot.m"  was adapted for evaluation according to the attributes described in the paper. 
 
 
The complete UAV123 & UAV20L datasets (~13.7GB)  can be downloaded here: 
[GoogleDrive][FTP][KAUST]: pw: uav123
 
The downsampled dataset UAV123_10fps (~4.6GB)  can be downloaded here: 
[GoogleDrive][FTP][KAUST]: pw: uav123​
 
A document containing all annotation details can be downloaded here: 
[GoogleDrive][FTP][KAUST]: pw: uav123​
 
The modified tracker benchmark (~51MB) with all configuration files and trackers can be downloaded here: 
[GoogleDrive][FTP][KAUST]: pw: uav123​
 
All results for the datasets UAV123, UAV123_10fps, UAV20L, TC128 and OTB100 (~189MB) can be downloaded here: [GoogleDrive][FTP][KAUST]: pw: uav123​ 
 

Publications

Matthias Mueller, Neil Smith and Bernard Ghanem

European Conference on Computer Vision (ECCV 2016 )
 

UAV-123 跟踪数据集并未提供处理好的数据集,官网下载的数据集是包含 91 个视频,需要处理下,将其分割为 123 个视频,这样操作比较方便。下面是 matlab 的处理脚本,需要的视频起始帧等信息,可以从其提供的评测代码上获取。这里将其列出:

'name','bike1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\bike1','startFrame',1,'endFrame',3085,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','bike2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\bike2','startFrame',1,'endFrame',553,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','bike3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\bike3','startFrame',1,'endFrame',433,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','bird1_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\bird1','startFrame',1,'endFrame',253,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','bird1_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\bird1','startFrame',775,'endFrame',1477,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','bird1_3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\bird1','startFrame',1573,'endFrame',2437,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','boat1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\boat1','startFrame',1,'endFrame',901,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','boat2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\boat2','startFrame',1,'endFrame',799,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','boat3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\boat3','startFrame',1,'endFrame',901,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','boat4','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\boat4','startFrame',1,'endFrame',553,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','boat5','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\boat5','startFrame',1,'endFrame',505,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','boat6','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\boat6','startFrame',1,'endFrame',805,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','boat7','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\boat7','startFrame',1,'endFrame',535,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','boat8','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\boat8','startFrame',1,'endFrame',685,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','boat9','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\boat9','startFrame',1,'endFrame',1399,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','building1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\building1','startFrame',1,'endFrame',469,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','building2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\building2','startFrame',1,'endFrame',577,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','building3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\building3','startFrame',1,'endFrame',829,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','building4','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\building4','startFrame',1,'endFrame',787,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','building5','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\building5','startFrame',1,'endFrame',481,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car1_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car1','startFrame',1,'endFrame',751,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car1_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car1','startFrame',751,'endFrame',1627,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car1_3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car1','startFrame',1627,'endFrame',2629,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car2','startFrame',1,'endFrame',1321,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car3','startFrame',1,'endFrame',1717,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car4','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car4','startFrame',1,'endFrame',1345,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car5','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car5','startFrame',1,'endFrame',745,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car6_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car6','startFrame',1,'endFrame',487,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car6_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car6','startFrame',487,'endFrame',1807,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car6_3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car6','startFrame',1807,'endFrame',2953,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car6_4','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car6','startFrame',2953,'endFrame',3925,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car6_5','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car6','startFrame',3925,'endFrame',4861,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car7','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car7','startFrame',1,'endFrame',1033,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car8_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car8','startFrame',1,'endFrame',1357,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car8_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car8','startFrame',1357,'endFrame',2575,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car9','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car9','startFrame',1,'endFrame',1879,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car10','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car10','startFrame',1,'endFrame',1405,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car11','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car11','startFrame',1,'endFrame',337,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car12','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car12','startFrame',1,'endFrame',499,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car13','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car13','startFrame',1,'endFrame',415,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car14','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car14','startFrame',1,'endFrame',1327,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car15','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car15','startFrame',1,'endFrame',469,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car16_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car16','startFrame',1,'endFrame',415,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car16_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car16','startFrame',415,'endFrame',1993,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car17','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car17','startFrame',1,'endFrame',1057,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car18','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car18','startFrame',1,'endFrame',1207,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','group1_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\group1','startFrame',1,'endFrame',1333,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','group1_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\group1','startFrame',1333,'endFrame',2515,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','group1_3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\group1','startFrame',2515,'endFrame',3925,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','group1_4','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\group1','startFrame',3925,'endFrame',4873,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','group2_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\group2','startFrame',1,'endFrame',907,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','group2_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\group2','startFrame',907,'endFrame',1771,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','group2_3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\group2','startFrame',1771,'endFrame',2683,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','group3_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\group3','startFrame',1,'endFrame',1567,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','group3_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\group3','startFrame',1567,'endFrame',2827,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','group3_3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\group3','startFrame',2827,'endFrame',4369,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','group3_4','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\group3','startFrame',4369,'endFrame',5527,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person1','startFrame',1,'endFrame',799,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person2_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person2','startFrame',1,'endFrame',1189,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person2_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person2','startFrame',1189,'endFrame',2623,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person3','startFrame',1,'endFrame',643,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person4_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person4','startFrame',1,'endFrame',1501,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person4_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person4','startFrame',1501,'endFrame',2743,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person5_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person5','startFrame',1,'endFrame',877,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person5_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person5','startFrame',877,'endFrame',2101,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person6','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person6','startFrame',1,'endFrame',901,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person7_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person7','startFrame',1,'endFrame',1249,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person7_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person7','startFrame',1249,'endFrame',2065,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person8_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person8','startFrame',1,'endFrame',1075,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person8_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person8','startFrame',1075,'endFrame',1525,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person9','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person9','startFrame',1,'endFrame',661,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person10','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person10','startFrame',1,'endFrame',1021,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person11','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person11','startFrame',1,'endFrame',721,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person12_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person12','startFrame',1,'endFrame',601,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person12_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person12','startFrame',601,'endFrame',1621,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person13','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person13','startFrame',1,'endFrame',883,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person14_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person14','startFrame',1,'endFrame',847,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person14_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person14','startFrame',847,'endFrame',1813,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person14_3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person14','startFrame',1813,'endFrame',2923,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person15','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person15','startFrame',1,'endFrame',1339,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person16','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person16','startFrame',1,'endFrame',1147,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person17_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person17','startFrame',1,'endFrame',1501,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person17_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person17','startFrame',1501,'endFrame',2347,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person18','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person18','startFrame',1,'endFrame',1393,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person19_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person19','startFrame',1,'endFrame',1243,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person19_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person19','startFrame',1243,'endFrame',2791,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person19_3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person19','startFrame',2791,'endFrame',4357,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person20','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person20','startFrame',1,'endFrame',1783,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person21','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person21','startFrame',1,'endFrame',487,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person22','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person22','startFrame',1,'endFrame',199,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person23','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person23','startFrame',1,'endFrame',397,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','truck1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\truck1','startFrame',1,'endFrame',463,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','truck2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\truck2','startFrame',1,'endFrame',385,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','truck3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\truck3','startFrame',1,'endFrame',535,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','truck4_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\truck4','startFrame',1,'endFrame',577,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','truck4_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\truck4','startFrame',577,'endFrame',1261,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','uav1_1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\uav1','startFrame',1,'endFrame',1555,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','uav1_2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\uav1','startFrame',1555,'endFrame',2377,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','uav1_3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\uav1','startFrame',2473,'endFrame',3469,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','uav2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\uav2','startFrame',1,'endFrame',133,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','uav3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\uav3','startFrame',1,'endFrame',265,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','uav4','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\uav4','startFrame',1,'endFrame',157,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','uav5','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\uav5','startFrame',1,'endFrame',139,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','uav6','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\uav6','startFrame',1,'endFrame',109,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','uav7','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\uav7','startFrame',1,'endFrame',373,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','uav8','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\uav8','startFrame',1,'endFrame',301,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','wakeboard1','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\wakeboard1','startFrame',1,'endFrame',421,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','wakeboard2','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\wakeboard2','startFrame',1,'endFrame',733,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','wakeboard3','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\wakeboard3','startFrame',1,'endFrame',823,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','wakeboard4','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\wakeboard4','startFrame',1,'endFrame',697,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','wakeboard5','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\wakeboard5','startFrame',1,'endFrame',1675,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','wakeboard6','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\wakeboard6','startFrame',1,'endFrame',1165,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','wakeboard7','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\wakeboard7','startFrame',1,'endFrame',199,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','wakeboard8','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\wakeboard8','startFrame',1,'endFrame',1543,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','wakeboard9','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\wakeboard9','startFrame',1,'endFrame',355,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','wakeboard10','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\wakeboard10','startFrame',1,'endFrame',469,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car1_s','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car1_s','startFrame',1,'endFrame',1475,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car2_s','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car2_s','startFrame',1,'endFrame',320,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car3_s','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car3_s','startFrame',1,'endFrame',1300,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','car4_s','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\car4_s','startFrame',1,'endFrame',830,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person1_s','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person1_s','startFrame',1,'endFrame',1600,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person2_s','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person2_s','startFrame',1,'endFrame',250,'nz',6,'ext','jpg','init_rect', [0,0,0,0]),...
'name','person3_s','path','G:\Tracking_Benchmark\UAV123_Dataset\UAV123\data_seq\UAV123\person3_s','startFrame',1,'endFrame',505,'nz',6,'ext','jpg','init_rect', [0,0,0,0])};

将上述文档复制到 txt 文档中,并重命名为:uav123_videoList.txt,然后执行下面的脚本即可生成对应的 UAV123 数据集视频和对应的标注文件。格式服从 OTB-2015。

%%
clc; clear all; close all; warning off; uav123_videoList_path = 'F:\UAV123_tracker_benchmark_v1.1\uav123_videoList.txt';
videoInfo_txt = importdata(uav123_videoList_path);
uav123_savePath = 'F:\UAV123_tracker_benchmark_v1.1\UAV123_dataset\';
mkdir(uav123_savePath); uav123_gt_path = 'G:\Tracking_Benchmark\UAV123_Dataset\UAV123\UAV123_gt_files\'; for i=1:size(videoInfo_txt, 1) line = videoInfo_txt(i, :);
line_txt = line{1, 1};
parse_txt = regexp(line_txt, ',', 'split'); videoName = parse_txt{1, 2};
videoName = videoName(2:end-1);
videoPath = parse_txt{1, 4};
videoPath = [videoPath '\'];
videoPath = videoPath(2:end-1);
startFrame = str2double(parse_txt{1, 6});
endFrame = str2double(parse_txt{1, 8}); gt_path = [uav123_gt_path videoName '.txt'];
gt = importdata(gt_path); newVideo_path = [uav123_savePath videoName '\img\'];
newGT_path = [uav123_savePath videoName '\groundtruth.txt'];
mkdir(newVideo_path);
imgFiles = dir([videoPath, '*.jpg']);
count = 1;
fid = fopen(newGT_path, 'w');
fprintf(fid, '%s\n', num2str(gt(1, :)));
fclose(fid); for imgIndex = startFrame:endFrame
disp(['==>> ', num2str(i), '/', num2str(size(videoInfo_txt, 1)), 'index: ', num2str(count)]);
image = imread([videoPath, imgFiles(imgIndex).name]);
imgName = [sprintf('%06d', count) '.jpg'];
imwrite(image, [newVideo_path, imgName]);
count = count + 1;
end end

====>>  Tracking results visualization:

% 把所有tracker的结果画在一张图上,结果保存在 tracking_Results_Visualize_lasot 目录下:
clc; close all; clear all; tracker={'VITAL', 'MDNet', 'SINT', 'CFNet', 'ECO', 'PTAV', 'GroundTruth'};
lasot_dataset_path = 'E:\LaSOT-dataset\LaSOT\';
sequence= dir(lasot_dataset_path);
sequence = sequence(:end); trackerResultsPath='C:\Users\wangx\Desktop\LaSOT_Evaluation_Toolkit\tracking_results\';
sequencePath=lasot_dataset_path;
saveBasePath='E:\LaSOT-dataset\tracking_Results_Visualize_lasot\';
if(isfolder(saveBasePath)==)
mkdir(saveBasePath);
end % for videoIndex = :size(sequence, )
for videoIndex = %% , savingPath=[saveBasePath sequence(videoIndex).name '\'];
if(isfolder(savingPath)==)
mkdir(savingPath);
end
savingPath;
% r 红 g 绿 b 蓝 c 蓝绿 m 紫红 y 黄 k 黑 w 白
edgeColor={'r','g','b', 'y','k','m', 'c','g','b'};
lineStyle={'-','-','-', '-','-','-', '-','--',':',};
for trackerIndex=:length(tracker)
trackerResult(:,:,trackerIndex)=dlmread([trackerResultsPath [tracker{, trackerIndex} '_tracking_result'] '\' sequence(videoIndex).name '.txt']);
end frames=dir([sequencePath sequence(videoIndex).name '\img\*.png']);
if(isempty(frames)==)
frames=dir([sequencePath sequence(videoIndex).name '\img\*.jpg']);
end frames={frames.name};
bb=[trackerResult(:,,:), trackerResult(:,,:) , trackerResult(:,,:), trackerResult(:,,:)] ; for frameIndex=:length(frames)
im = imread([sequencePath sequence(videoIndex).name '\img\' frames{frameIndex}]);
imshow(uint8(im));
for trackerIndex=:length(tracker)
rectangle('Position',bb(frameIndex,:,trackerIndex),'LineWidth',,'EdgeColor',edgeColor{trackerIndex},'LineStyle',lineStyle{trackerIndex});
end
hold on;
text(, , strcat('#',num2str(frameIndex)), 'Color','y', 'FontWeight','bold', 'FontSize',);
set(gca,'position',[ ]);
pause(0.00001);
hold off;
imwrite(frame2im(getframe(gcf)),[savingPath num2str(frameIndex) '.jpg']);
end end

Matlab Script to pre-process UAV123 tracking dataset的更多相关文章

  1. save tracking results into csv file for oxuva long-term tracking dataset (from txt to csv)

    save tracking results into csv file for oxuva long-term tracking dataset (from txt to csv) 2019-10-2 ...

  2. MATLAB 例子研究 Motion-Based Multiple Object Tracking

    这个例子是用来识别视频中多个物体运动的.我要研究的是:搞清楚识别的步骤和相应的算法,识别出物体运动的轨迹. 详细参见官方帮助文档,总结如下: 移动物体的识别算法:a background subtra ...

  3. labview 调用 matlab script的神坑! Error 1050 occurred at LabVIEW

    显示变量没有被定义,原因是clear 关键字的问题,去掉即可!!! 未找到 文件路径,定位: 文件路径中不能有中文路径

  4. (zhuan) Speech and Natural Language Processing

    Speech and Natural Language Processing obtain from this link: https://github.com/edobashira/speech-l ...

  5. Libsvm:脚本(subset.py、grid.py、checkdata.py) | MATLAB/OCTAVE interface | Python interface

    1.脚本 This directory includes some useful codes: 1. subset selection tools. (子集抽取工具) subset.py 2. par ...

  6. matlab安装和入门

    下载iso镜像: ISO镜像下载地址链接: http://pan.baidu.com/s/1i31bu5J 密码: obo1 单独破解文件下载链接: http://pan.baidu.com/s/1c ...

  7. 相机标定问题-Matlab & Py-Opencv

    一.相机标定基本理论 1.相机成像系统介绍 图中总共有4个坐标系: 图像坐标系:Op    坐标表示方法(u,v)                 Unit:Dots(个) 成像坐标系:Oi      ...

  8. 读取Simulink中Dataset类型的数据

    http://files.cnblogs.com/files/pursuiting/%E5%80%92%E7%AB%8B%E6%91%86%E6%8E%A7%E5%88%B6%E7%B3%BB%E7% ...

  9. Matlab编程基础

    平台:Win7 64 bit,Matlab R2014a(8.3) “Matlab”是“Matrix Laboratory” 的缩写,中文“矩阵实验室”,是强大的数学工具.本文侧重于Matlab的编程 ...

随机推荐

  1. 【RabbitMQ】RabbitMQ的安装以及基本概念的介绍

    一.如何安装 https://www.cnblogs.com/756623607-zhang/p/11469962.html 二.基本概念介绍 ·Broker:可以理解为消息队列服务器的实体,它是一个 ...

  2. FreeBSD安装过程

    对于现在版本,安装过程中该使用哪些键,现简单总结: Space:选中/取消选中: Tab:切换,主要是分区界面时用它选择输入行: Enter:确定(并进入下一页): 方向键:在一些子组里更换输入项得用 ...

  3. backtrace() returns only one stack frame

    参考: 在Linux中如何利用backtrace信息解决程序崩溃的问题 linux 打印堆栈方法 https://devtalk.nvidia.com/default/topic/987279/jet ...

  4. JavaSE理论篇

    将已学过的知识记录在此,既能便于以后温习又能方便知识共享,做到共同成长. 计算机语言发展简史 主要分为三个阶段 机器语言:打点机,有点表示1,没有表示0,打点计时器 低级语言:汇编语言 高级语言:Ja ...

  5. 发送短信验证码的JAVA代码

    package com.moretickets.platform; import com.alibaba.fastjson.JSONException; import com.alibaba.fast ...

  6. docker学习7-Dockerfile制作自己的镜像文件

    前言 如果你是一个python自动化测试人员,某天你在公司终于完成了一个项目的接口自动化脚本工作,在你自己常用的本机或者服务器上调试完成了脚本,稳稳地没问题. 可是晚上下班回家,你自己找了个linux ...

  7. 项目Beta冲刺(团队)——05.23(1/7)

    项目Beta冲刺(团队)--05.23(1/7) 格式描述 课程名称:软件工程1916|W(福州大学) 作业要求:项目Beta冲刺(团队) 团队名称:为了交项目干杯 作业目标:记录Beta敏捷冲刺第1 ...

  8. BZOJ - 3242 :快餐店 (基环树DP) 最小化半径

    题意:给定N点N边的无向连通图,现在让你在图中找一点作为餐厅,使得最远点距离这点最近. 思路:为了保留整数,我们求最小直径,最后去除2.  直径来源于两部分: 1,在外向树中: 那么就是树的直接,一棵 ...

  9. Ubuntu设置终端操作行为的回收站

    Ubuntu设置终端操作行为的回收站(默认情况下,在终端删除文件,会直接删除) 参考自:https://help.aliyun.com/knowledge_detail/41359.html?spm= ...

  10. 什么是JavaEE,什么是Spring

    作者:大宽宽链接:https://www.zhihu.com/question/268742981/answer/341770209来源:知乎著作权归作者所有.商业转载请联系作者获得授权,非商业转载请 ...