MCPcopy Create free account
hub / github.com/csxmli2016/MARCONetPlusPlus / is_image_file

Function is_image_file

utils/utils_image.py:11–12  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

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

Callers 1

_get_paths_from_imagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected