MCPcopy Index your code
hub / github.com/idootop/MagicMirror / _read_image

Function _read_image

src-python/magic/face.py:50–51  ·  view source on GitHub ↗
(img_path: str)

Source from the content-addressed store, hash-verified

48
49@lru_cache(maxsize=12)
50def _read_image(img_path: str):
51 return cv2.imdecode(np.fromfile(img_path, dtype=np.uint8), -1)
52
53
54def _write_image(img_path: str, img):

Callers 2

_swap_faceFunction · 0.85
_get_one_faceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected