import cv2
import numpy as np
im = cv2.imread('d:/images/wood.jpg')
obj = cv2.imread('d:/images/love.jpg')
mask = 255*np.ones(obj.shape, obj.dtype)
width, height, channels = im.shape
center = (int(height/2), int(width/2))
normal_clone = cv2.seamlessClone(obj, im, mask, center, cv2.NORMAL_CLONE)
mixed_clone = cv2.seamlessClone(obj, im, mask, center, cv2.MIXED_CLONE)
cv2.imwrite("d:/images/opencv-normal-clone-example.jpg", normal_clone)
cv2.imwrite("d:/images/opencv-mixed-clone-example.jpg", mixed_clone)
mixed clone
normal clone