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