From 781221091af67c76e248aba9b7894341cef19d88 Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 28 Apr 2025 10:12:28 -0400 Subject: [PATCH] Global within_one_mile_check Bool added to dedup.py --- dedup.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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")