7 lines
179 B
Python
7 lines
179 B
Python
|
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)
|