title: Using openCV to overlay transparent image onto another image
body: <p>How can I overlay a transparent PNG onto another image without losing it's transparency using openCV in python?</p>
  <pre><code>import cv2
  
  background = cv2.imread('field.jpg')
  overlay = cv2.imread('dice.png')
  
  # Help please
  
  cv2.imwrite('combined.png', background)
  </code></pre>
  <p>Desired output:
  <a href="https://i.stack.imgur.com/8KvHk.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/8KvHk.jpg" alt="enter image description here" /></a></p>
  <p>Sources:</p>
  <p><a href="http://www.ercole.com/wp-content/uploads/2016/06/hill-966202_960_720.jpg" rel="noreferrer">Background Image</a></p>
  <p><a href="https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png" rel="noreferrer">Overlay</a></p>