Home > Back-end >  How can the ROI into an image?
How can the ROI into an image?

Time:11-17

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 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 other

CodePudding user response:

What is this? Python?

CodePudding user response:

Python,
  • Related