CSAILVision / LabelMeAnnotationTool

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

Change image regex from partial to exact match #49

Closed there closed 6 years ago

there commented 6 years ago

I have a directory of images with filenames 0.jpg, 1.jpg, 2.jpg10.jpg, etc., and the regex would match /0\.jpg/ with 10.jpg. Because of this, it would only fetch a subset of the images in the directory (i.e., the images in the $all_images array between 0.jpg and 10.jpg), as this loop breaks when it matches with any filename that ends in 0.jpg instead of exactly 0.jpg.