|
|
|
|
@ -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") |
|
|
|
|
|
|
|
|
|
|