ddovidovich commited on
Commit
3a0efcc
·
1 Parent(s): af95754

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -120,7 +120,7 @@ if image_file is not None:
120
  ## Plotting - Пример результата
121
  img = cv2.imread(image_file)
122
 
123
- predict1 = cv2.resize(predict, (img.shape[1], img.shape[0]), interpolation=cv2.INTER_LANCZOS4)
124
 
125
  mask = np.uint8(predict1 * 255)
126
  _, mask = cv2.threshold(mask, thresh=255/2, maxval=255, type=cv2.THRESH_BINARY)
 
120
  ## Plotting - Пример результата
121
  img = cv2.imread(image_file)
122
 
123
+ predict1 = cv2.resize(predict_img, (img.shape[1], img.shape[0]), interpolation=cv2.INTER_LANCZOS4)
124
 
125
  mask = np.uint8(predict1 * 255)
126
  _, mask = cv2.threshold(mask, thresh=255/2, maxval=255, type=cv2.THRESH_BINARY)