openCV4-mixImage

import cv2

frame1 = cv2.imread ('C:/Users/64679/Desktop/1.JPG')
frame2 = cv2.imread ('C:/Users/64679/Desktop/2.JPG')

dst = cv2.addWeighted (frame1, 0.5, frame2, 0.5, 0)
cv2.imshow ('dog1', frame1)
cv2.imshow ('dog2', frame2)
cv2.imshow ('dogMix', dst)
cv2.moveWindow ('dog1', 0, 0)
cv2.moveWindow ('dog2', 550, 0)
cv2.moveWindow ('dogMix', 1000, 0)

cv2.waitKey (0)
cv2.destroyAllWindows ()


你可能感兴趣的:(opencv,计算机视觉,人工智能)