datastes/Clarity Test/.ipynb_checkpoints/test-checkpoint.py

7 lines
179 B
Python
Raw Normal View History

2025-05-13 17:03:15 +08:00
import cv2
image_path = '002.png'
image = cv2.imread(image_path)
if image is None:
raise ValueError("Error: Image not found or unable to load.")
cv2.imwrite('123.png', image)