Spaces:
Build error
Build error
tmp
Browse files
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 |
-
|
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 |
-
|
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')
|