Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transfer standard vot format to the suitable format #1

Closed
foolwood opened this issue Sep 7, 2016 · 1 comment
Closed

transfer standard vot format to the suitable format #1

foolwood opened this issue Sep 7, 2016 · 1 comment

Comments

@foolwood
Copy link

foolwood commented Sep 7, 2016

base_path = '/home/qiangwang/Desktop/vot/vot15';
goal_path = '/home/qiangwang/Desktop/vot/vot15_SiameseFC';
dirs = dir(base_path);
videos_name = {dirs.name};
videos_name(strcmp('.', videos_name) | strcmp('..', videos_name) | ...
    ~[dirs.isdir]) = [];

mkdir(goal_path);
for video = videos_name
disp(video)
mkdir([goal_path '/vot15_' video{1}]);
mkdir([goal_path '/vot15_' video{1} '/imgs']);
copyfile([base_path '/' video{1} '/*.jpg'],[goal_path '/vot15_' video{1} '/imgs']);
copyfile([base_path '/' video{1} '/groundtruth.txt'],[goal_path '/vot15_' video{1} '/groundtruth.txt']);
n = numel(dir([base_path '/' video{1} '/*.jpg']));
txt_name = ['vot15_' video{1} 'frames.txt'];
fid =fopen([goal_path '/vot15_' video{1} '/' txt_name],'w');
fprintf(fid,'%d,%d',1,n);
fclose(fid);
end
@foolwood foolwood changed the title tranfert form vot format to the suitable format transfer standard vot format to the suitable format Sep 7, 2016
@bertinetto
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants