Matlab Script to pre-process UAV123 tracking dataset

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])};
View Code

 

 

 

将上述文档复制到 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(3: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)==0)
mkdir(saveBasePath);
end

% for videoIndex = 2:size(sequence, 1)
for videoIndex = 934 %% , 

savingPath=[saveBasePath sequence(videoIndex).name '\'];
if(isfolder(savingPath)==0)
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=1:length(tracker)
trackerResult(:,:,trackerIndex)=dlmread([trackerResultsPath [tracker{1, trackerIndex} '_tracking_result'] '\' sequence(videoIndex).name '.txt']);
end

frames=dir([sequencePath sequence(videoIndex).name '\img\*.png']);
if(isempty(frames)==1)
frames=dir([sequencePath sequence(videoIndex).name '\img\*.jpg']);
end

frames={frames.name};
bb=[trackerResult(:,1,:), trackerResult(:,2,:) , trackerResult(:,3,:), trackerResult(:,4,:)] ;

for frameIndex=1:length(frames)
im = imread([sequencePath sequence(videoIndex).name '\img\' frames{frameIndex}]);
imshow(uint8(im));
for trackerIndex=1:length(tracker)
rectangle('Position',bb(frameIndex,:,trackerIndex),'LineWidth',3,'EdgeColor',edgeColor{trackerIndex},'LineStyle',lineStyle{trackerIndex});
end
hold on;
text(5, 18, strcat('#',num2str(frameIndex)), 'Color','y', 'FontWeight','bold', 'FontSize',20);
set(gca,'position',[0 0 1 1]);
pause(0.00001);
hold off;
imwrite(frame2im(getframe(gcf)),[savingPath num2str(frameIndex) '.jpg']);
end

end

 

posted @ 2019-11-08 06:50  AHU-WangXiao  阅读(2259)  评论(2编辑  收藏  举报