s1 = cv2.imread(image_path, 0)
y1 = 0
x1 = 0
print(s1.shape)
height, width = s1.shape
cropImg1 = s1[int(y1):int(y1 + height), int(x1):int(x1 + width)]
请问cropImg1 怎样才能使用 imwrite() 保存成图像?cropImg2 怎样才能转成一张图片?谢谢