NihalGazi commited on
Commit
d5327d1
·
verified ·
1 Parent(s): e189340

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def morph_images(img1, img2, alpha):
28
  if lm1 is None or lm2 is None:
29
  return Image.fromarray(cv2.cvtColor(img1, cv2.COLOR_BGR2RGB)) # fallback
30
 
31
- lm_avg = ((1 - alpha) * lm1 + alpha * lm2).astype(np.int32)
32
 
33
  rect = (0, 0, img1.shape[1], img1.shape[0])
34
  subdiv = cv2.Subdiv2D(rect)
 
28
  if lm1 is None or lm2 is None:
29
  return Image.fromarray(cv2.cvtColor(img1, cv2.COLOR_BGR2RGB)) # fallback
30
 
31
+ lm_avg = ((1 - alpha) * lm1 + alpha * lm2).astype(np.float32)
32
 
33
  rect = (0, 0, img1.shape[1], img1.shape[0])
34
  subdiv = cv2.Subdiv2D(rect)