carlosriverat commited on
Commit
81ecec1
·
verified ·
1 Parent(s): ef88f4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def compare_images(image1, image2, blur_value, technique, threshold_value, metho
74
  overlayed = cv2.addWeighted(image1, 0.7, diff_colored, 0.6, 0)
75
 
76
  blended_with_object = cv2.addWeighted(image1, 0.4, image2, 0.6, 0)
77
- blended_without_object = cv2.addWeighted(image1, 0.6, image2, 0.4, 0)
78
 
79
  return highlighted, overlayed, blended_with_object, blended_without_object
80
 
 
74
  overlayed = cv2.addWeighted(image1, 0.7, diff_colored, 0.6, 0)
75
 
76
  blended_with_object = cv2.addWeighted(image1, 0.4, image2, 0.6, 0)
77
+ blended_without_object = cv2.bitwise_and(image1, image1, mask=255 - thresh)
78
 
79
  return highlighted, overlayed, blended_with_object, blended_without_object
80