1 Add Picture
cv.add() can be used to add 2 picture.
import cv2
import numpy as np
print('Testing .........')
picture1_path = 'C:/Users/xxx/Desktop/temp/bibble.JPG'
picture2_path = 'C:/Users/xxx/Desktop/temp/bird.JPG'
image1 = cv2.imread(picture1_path)
image2 = cv2.imread(picture2_path)
#第一张图片的权重为1.0, 第二张为0.5
image_add = cv2.addWeighted(cv2.resize(image1,(1024,555)), 1.0, cv2.resize(image2,(1024,555)), 0.5, 0)
cv2.imshow('image_add', image_add)
cv2.waitKey(10000) # [ms]
将第一张和第二张图片叠加成新图片: