diff --git a/dedup.py b/dedup.py index 5841be4..a02a348 100644 --- a/dedup.py +++ b/dedup.py @@ -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") diff --git a/japan-river.jpg b/japan-river.jpg new file mode 100644 index 0000000..8ba7cd7 Binary files /dev/null and b/japan-river.jpg differ diff --git a/london-bridge.jpg b/london-bridge.jpg new file mode 100644 index 0000000..7a5464d Binary files /dev/null and b/london-bridge.jpg differ