<filename>Documentacao/7-mesclar.py
import cv2
import numpy as np

img1 = cv2.imread('tobi.jpg')
img2 = cv2.imread('tobi.jpg')
img2 = cv2.cvtColor(img2, cv2.COLOR_BGR2RGB)

dst = cv2.addWeighted(img1,0.7,img2,0.3,0)

cv2.imshow('dst',dst)
cv2.waitKey(0)
cv2.destroyAllWindows()
<filename>Documentacao/7-mesclar.py
import cv2
import numpy as np

img1 = cv2.imread('tobi.jpg')
img2 = cv2.imread('tobi.jpg')
img2 = cv2.cvtColor(img2, cv2.COLOR_BGR2RGB)

dst = cv2.addWeighted(img1,0.7,img2,0.3,0)

cv2.imshow('dst',dst)
cv2.waitKey(0)
cv2.destroyAllWindows()