|
|
|
@ -56,23 +56,18 @@ def handle_GPS(location1, location2): |
|
|
|
point2 = (latitude2, longitude2) |
|
|
|
point2 = (latitude2, longitude2) |
|
|
|
camera1 = (camera_info1['Make'], camera_info1['Model']) |
|
|
|
camera1 = (camera_info1['Make'], camera_info1['Model']) |
|
|
|
camera2 = (camera_info2['Make'], camera_info2['Model']) |
|
|
|
camera2 = (camera_info2['Make'], camera_info2['Model']) |
|
|
|
|
|
|
|
same_cams = is_same_camera(camera1, camera2) |
|
|
|
|
|
|
|
|
|
|
|
the_location = is_same_location(point1, point2) |
|
|
|
the_location = is_same_location(point1, point2) |
|
|
|
match the_location: |
|
|
|
match the_location: |
|
|
|
case True: |
|
|
|
case True: |
|
|
|
print("Images are both from same exact Location") |
|
|
|
print("Images are both from same exact Location") |
|
|
|
if is_same_camera(camera1, camera2): |
|
|
|
if same_cams: |
|
|
|
print("Cameras are the same.") |
|
|
|
print("Cameras are the same.") |
|
|
|
delibs.exit_timer(5) |
|
|
|
delibs.exit_timer(5) |
|
|
|
else: |
|
|
|
|
|
|
|
print("Different Cameras detected.") |
|
|
|
|
|
|
|
not_a_dup() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case False: |
|
|
|
case False: |
|
|
|
print("Images are from different Locations") |
|
|
|
print("Images are from different Locations") |
|
|
|
if is_same_camera(camera1, camera2) == False: |
|
|
|
|
|
|
|
print("Different Cameras detected.") |
|
|
|
|
|
|
|
not_a_dup() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case float() if isinstance(the_location, float): # Checks if it's a float |
|
|
|
case float() if isinstance(the_location, float): # Checks if it's a float |
|
|
|
print(f"Images distance in feet: {the_location:.2f}") |
|
|
|
print(f"Images distance in feet: {the_location:.2f}") |
|
|
|
@ -81,12 +76,10 @@ def handle_GPS(location1, location2): |
|
|
|
if is_same_camera(camera1, camera2): |
|
|
|
if is_same_camera(camera1, camera2): |
|
|
|
print("Cameras are the same.") |
|
|
|
print("Cameras are the same.") |
|
|
|
delibs.exit_timer(6) |
|
|
|
delibs.exit_timer(6) |
|
|
|
else: |
|
|
|
|
|
|
|
print("Different Cameras detected.") |
|
|
|
if same_cams == False: |
|
|
|
not_a_dup() |
|
|
|
print("Different Cameras detected.") |
|
|
|
elif is_same_camera(camera1, camera2) == False: |
|
|
|
not_a_dup() |
|
|
|
print("Different Cameras detected.") |
|
|
|
|
|
|
|
not_a_dup() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def is_module_imported(module_name): |
|
|
|
def is_module_imported(module_name): |
|
|
|
return module_name in sys.modules |
|
|
|
return module_name in sys.modules |
|
|
|
|