Ajay98 commited on
Commit
be3c563
·
verified ·
1 Parent(s): 5034303

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,6 +1,9 @@
1
  import os
2
  import cv2
3
  import numpy as np
 
 
 
4
 
5
  def compare_images(image1, image2):
6
  img1 = cv2.imread(image1)
@@ -43,9 +46,7 @@ def compare_folders(staff_folder, unknown_folder):
43
  if not found_match:
44
  print(f"No match found for {staff_image} (Unknown)")
45
 
46
- # Define the paths
47
- staff_folder_path = r"C:\Test1" # Update to your actual path
48
- unknown_folder_path = r"C:\Test2" # Update to your actual path
49
 
50
  if __name__ == "__main__":
51
  # Print paths for debugging
@@ -53,4 +54,6 @@ if __name__ == "__main__":
53
  print(f"Unknown folder path: {unknown_folder_path}")
54
 
55
  # Compare folders
 
 
56
  compare_folders(staff_folder_path, unknown_folder_path)
 
1
  import os
2
  import cv2
3
  import numpy as np
4
+ # Define the paths
5
+ staff_folder_path = r"C:\Test1" # Update to your actual path
6
+ unknown_folder_path = r"C:\Test2"
7
 
8
  def compare_images(image1, image2):
9
  img1 = cv2.imread(image1)
 
46
  if not found_match:
47
  print(f"No match found for {staff_image} (Unknown)")
48
 
49
+ # Update to your actual path
 
 
50
 
51
  if __name__ == "__main__":
52
  # Print paths for debugging
 
54
  print(f"Unknown folder path: {unknown_folder_path}")
55
 
56
  # Compare folders
57
+
58
+
59
  compare_folders(staff_folder_path, unknown_folder_path)