MCPcopy Create free account
hub / github.com/bcmi/OSInsert-Image-Composition / read_image_bgr

Function read_image_bgr

libcom/os_insert/source/utils.py:36–41  ·  view source on GitHub ↗
(path: str | Path)

Source from the content-addressed store, hash-verified

34
35
36def read_image_bgr(path: str | Path) -> np.ndarray:
37 path = Path(path)
38 img = cv2.imread(str(path))
39 if img is None:
40 raise FileNotFoundError(path)
41 return img

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected