Skip to content

Instantly share code, notes, and snippets.

@Ruqyai
Created March 14, 2020 11:51
Show Gist options
  • Select an option

  • Save Ruqyai/d044d0576201aee599ae5e089750e100 to your computer and use it in GitHub Desktop.

Select an option

Save Ruqyai/d044d0576201aee599ae5e089750e100 to your computer and use it in GitHub Desktop.
img1=cv2.imread(list(img_name)[0],1)
img2=cv2.imread(list(img_name1)[0],1)
dst = cv2.addWeighted(img1,0.7,img2,0.5,0) # نجمع المصفوفتين مع نضبط الاوزان
#dst = cv2.add(img1,img2) # نجمع المصفوفتين كما هي
img=cv2.cvtColor(dst, 2) # نغير نظام الألوان ل RGB
fig = plt.figure(figsize=(5, 5))
plt.axis('off')
plt.imshow(img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment