Untitled

 avatar
unknown
plain_text
2 years ago
422 B
3
Indexable
image_to_cropp = image[y_final_img:y_final_img+h_bbox,
                        x_final_img:x_final_img+w_bbox]
                shape1img,shape2img,_ = np.array(image_to_cropp).shape
                shape1cropp,shape2cropp,_ = cropped.shape
                cropped = cropped[:shape1img,:shape2img]
                image[y_final_img:y_final_img+h_bbox,
                        x_final_img:x_final_img+w_bbox] = cropped
Editor is loading...