MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / get_img_list

Function get_img_list

functions.py:82–85  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

80
81
82def get_img_list(path):
83 is_image_file = lambda x : any(x.endswith(extension)
84 for extension in ['.jpg', 'png', 'gif', 'bmp'])
85 return [os.path.join(r, i) for r, _, f in os.walk(path) for i in f if is_image_file(i)]
86
87
88def load_seg_module(cfg):

Callers 1

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected