(file_path)
| 6 | import scripts.berry_utility as utilityb |
| 7 | |
| 8 | def 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 | |
| 14 | def save_image(image, file_path): |
| 15 | cv2.imwrite(file_path, image) |