Blending image in python Bangla

Опубликовано: 07 Апрель 2026
на канале: EasyLearn School
170
1

Blending image in python Bangla

Source code:

import cv2

Read Image1
img = cv2.imread('leena.jpg')

Read image2
img1= cv2.imread('cameraman.jpg')

re_img = cv2.resize(img,(200,200))
re_img1 = cv2.resize(img1,(200,200))

Blending the images with 0.3 and 0.7
img = cv2.addWeighted(re_img, 0.3, re_img1, 0.7, 0)

Show the image
cv2.imshow('image', img)


#f = cv2.hconcat((re_img,re_img))

Blending image in python Bangla

Source code;

import cv2

Read Image1
img = cv2.imread('leena.jpg')

Read image2
img1= cv2.imread('cameraman.jpg')

re_img = cv2.resize(img,(200,200))
re_img1 = cv2.resize(img1,(200,200))

Blending the images with 0.3 and 0.7
img = cv2.addWeighted(re_img, 0.3, re_img1, 0.7, 0)

Show the image
cv2.imshow('image', img)


#f = cv2.hconcat((re_img,re_img))