Python OpenCV
About Lesson

In this Python OpenCV lesson we are going to learn about Python OpenCV Image Blending, So according to OpenCV Documentation  image blending is  also image addition, but different weights are given to images so that it gives a feeling of blending or transparency. 

 

 

This is the complete code for this lesson.

 

 

 

First of we are going to load our two images.

 

 

We can use cv2.addWeighted() for this functionality,  first image is given a weight of 0.9 and second image is given 0.5, the last value is the gamma value.

 

 

 

Run the complete code and this is the result.

Python OpenCV Image Blending
Python OpenCV Image Blending