main
Robert 8 months ago
parent ce7eb4e1e1
commit 424cab7aa4
  1. 15
      dedup.py
  2. BIN
      japan-river.jpg
  3. BIN
      london-bridge.jpg

@ -28,6 +28,16 @@ Processing time scales with area, so 4x downscale = ~16x faster initial alignmen
Memory usage significantly reduced
"""
def handle_GPS(location1, location2):
if location1 == location2:
print("Images are both from same exact Location")
print("✅Possible duplicate")
delibs.exit_timer(5)
else:
print("Images are from different Locations")
print("👌Not a Duplicate")
delibs.exit_timer(0)
def is_module_imported(module_name):
return module_name in sys.modules
@ -57,9 +67,8 @@ def main():
coordinates1 = coordinates.get_coordinates_from_image(file1)
if coordinates1 != None:
coordinates2 = coordinates.get_coordinates_from_image(file2)
if coordinates1 == coordinates2:
print("Images are both from same Location")
delibs.exit_timer(5)
handle_GPS(coordinates1, coordinates2)
else:
print("Not using Coordinates module")

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 KiB

Loading…
Cancel
Save