opencv python版-lesson 09

图片尺寸需要一样

import cv2
import numpy as np

img1 =cv2.imread('test0.jpg')
img2 =cv2.imread('test0.jpg')
x=cv2.add(img1,img2)
dst = cv2.addWeighted(img1,0.7,img2,0.3,0)
cv2.imshow('dst',x)
cv2.imshow('dst',dst)
cv2.waitKey(0)
cv2.destroyAllWindows()

你可能感兴趣的:(opencv python版-lesson 09)