Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -25,7 +25,7 @@ def orb_sim(img1, img2):
|
|
25 |
return 0
|
26 |
return len(similar_regions) / len(matches)
|
27 |
|
28 |
-
def
|
29 |
Image.MAX_IMAGE_PIXELS = None
|
30 |
|
31 |
if source.startswith('http'):
|
|
|
25 |
return 0
|
26 |
return len(similar_regions) / len(matches)
|
27 |
|
28 |
+
def load_image(source):
|
29 |
Image.MAX_IMAGE_PIXELS = None
|
30 |
|
31 |
if source.startswith('http'):
|