MCPcopy Create free account
hub / github.com/Topdu/OpenOCR / _check_image_file

Function _check_image_file

tools/utils/utility.py:29–31  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

27
28
29def _check_image_file(path):
30 img_end = {"jpg", "bmp", "png", "jpeg", "rgb", "tif", "tiff", "gif", "pdf"}
31 return any([path.lower().endswith(e) for e in img_end])
32
33
34def get_image_file_list(img_file):

Callers 1

get_image_file_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected