(filename)
| 9 | IMG_EXTENSIONS = ['.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG', '.ppm', '.PPM', '.bmp', '.BMP', '.tif'] |
| 10 | |
| 11 | def is_image_file(filename): |
| 12 | return any(filename.endswith(extension) for extension in IMG_EXTENSIONS) |
| 13 | |
| 14 | |
| 15 | def get_image_paths(dataroot): |
no outgoing calls
no test coverage detected