Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python numpy + opencv + overlay image

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #numpy #opencv #overlay #image
ADD COMMENT
Topic
Name
1+5 =