CSAILVision / LabelMeAnnotationTool

Source code for the LabelMe annotation tool.
MIT License
1.38k stars 436 forks source link

Mode "c" doesn't seem to work as documented #32

Closed sirotenko closed 7 years ago

sirotenko commented 7 years ago

The documentation say:

mode=c - Go to next image in the collection (set via the dirlist). But if we look at the code here, we can see that it actually tries to read the contents of a specific folder:


elsif($mode eq "c") {
opendir(DIR,$LM_HOME . "Images/users/$username/$collection") || die("Cannot read collections");
my @all_images = readdir(DIR);
closedir(DIR);
my $c = 0;
foreach my $i (@all_images) {
if($i eq $image) {
    goto next_section;
}
$c = $c+1;
}

next_section: if($c == scalar(@all_images)-1) { $c = 1; } $im_file = $all_images[$c+1]; $im_dir = $folder; }

brianabrams commented 7 years ago

33

xavierpuigf commented 7 years ago

The pull request has been merged now. Thanks!

Abhijit-2592 commented 6 years ago

Even after the merge the mode C doesn't seem to work properly. It shows problems with fetch_image.cgi. It doesn't seem to read the "foo.txt" file that is created using populate_dirlist.sh