April 2020
Intermediate to advanced
438 pages
12h 2m
English
The steps for this recipe are as follows:
src = cv2.imread("images/liberty.png")dst = cv2.imread("images/victoria.png")src_mask = cv2.imread("images/cmask.png")print(src.shape, dst.shape, src_mask.shape)# (480, 698, 3) (576, 768, 3) (480, 698, 3)
center = (275,250)output = cv2.seamlessClone(src, dst, src_mask, center, \ cv2.MIXED_CLONE)cv2.imwrite("images/liberty_victoria.png", output)
Read now
Unlock full access