📜  python numpy + opencv + 覆盖图像 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:23.643000             🧑  作者: Mango

代码示例2
import cv2

background = cv2.imread('field.jpg')
overlay = cv2.imread('dice.png')

added_image = cv2.addWeighted(background,0.4,overlay,0.1,0)

cv2.imwrite('combined.png', added_image)