diff --git a/dedup.py b/dedup.py index a6e1907..f0038f8 100644 --- a/dedup.py +++ b/dedup.py @@ -28,6 +28,8 @@ Processing time scales with area, so 4x downscale = ~16x faster initial alignmen Memory usage significantly reduced """ +within_one_mile_check = True + def handle_GPS(location1, location2): camera_info1, latitude1, longitude1 = location1 make1 = camera_info1['Make'] @@ -46,11 +48,11 @@ def handle_GPS(location1, location2): if make1 == make2 and model1 == model2: print("Cameras are the same.") delibs.exit_timer(5) -# elif coordinates.are_within_one_mile(*point1, *point2): -# if make1 == make2 and model1 == model2: -# print("Images are within one mile") -# print("Cameras are the same.") -# delibs.exit_timer(6) + elif coordinates.are_within_one_mile(*point1, *point2) and within_one_mile_check == True: + if make1 == make2 and model1 == model2: + print("Images are within one mile") + print("Cameras are the same.") + delibs.exit_timer(6) else: print("Images are from different Locations") print("👌Not a Duplicate")