Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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)
50
def
_read_image(img_path: str):
51
return
cv2.imdecode(np.fromfile(img_path, dtype=np.uint8), -1)
52
53
54
def
_write_image(img_path: str, img):
Callers
2
_swap_face
Function · 0.85
_get_one_face
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected