YannisK commited on
Commit
4793fea
·
1 Parent(s): 57ca12a
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -117,7 +117,7 @@ def generate_matching_superfeatures(im1, im2, scale_id=6, threshold=50):
117
  fin_img.append(img2rsz)
118
 
119
  fig1 = plt.figure(1)
120
- fig1.show(cv2.cvtColor(img1rsz, cv2.COLOR_BGR2RGB))
121
  ax1 = plt.gca()
122
  ax1.axis('scaled')
123
  ax1.axis('off')
@@ -126,7 +126,7 @@ def generate_matching_superfeatures(im1, im2, scale_id=6, threshold=50):
126
  fig1.canvas.draw()
127
 
128
  fig2 = plt.figure(2)
129
- fig2.show(cv2.cvtColor(img2rsz, cv2.COLOR_BGR2RGB))
130
  ax2 = plt.gca()
131
  ax2.axis('scaled')
132
  ax2.axis('off')
 
117
  fin_img.append(img2rsz)
118
 
119
  fig1 = plt.figure(1)
120
+ plt.imshow(cv2.cvtColor(img1rsz, cv2.COLOR_BGR2RGB))
121
  ax1 = plt.gca()
122
  ax1.axis('scaled')
123
  ax1.axis('off')
 
126
  fig1.canvas.draw()
127
 
128
  fig2 = plt.figure(2)
129
+ plt.imshow(cv2.cvtColor(img2rsz, cv2.COLOR_BGR2RGB))
130
  ax2 = plt.gca()
131
  ax2.axis('scaled')
132
  ax2.axis('off')