Y1=0
X1=0
Print (s1) shape)
Height, width=s1. Shape
CropImg1=s1 [int (y1) : int (y1 + height), int (x1) : int (x1 + width)]
CropImg1 excuse me how to use the imwrite () save the image? How can cropImg2 into an image? thank you
CodePudding user response:
Region=s2. Crop (x2, y2, x2 + height, y2 + width)?Cv2. Imwrite (' book - jz. JPG 'region)
CodePudding user response:
Cv2. Imread () -- Image. The open () each otherCodePudding user response:
What is this? Python?CodePudding user response:
Python,