MCPcopy
hub / github.com/CiaraStrawberry/TemporalKit / read_image

Function read_image

scripts/optical_flow_simple.py:8–12  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

6import scripts.berry_utility as utilityb
7
8def read_image(file_path):
9 image = cv2.imread(file_path, cv2.IMREAD_COLOR)
10 if image is None:
11 raise ValueError(f"Image '{file_path}' not found.")
12 return image
13
14def save_image(image, file_path):
15 cv2.imwrite(file_path, image)

Callers 1

process_imagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected