Ajay98 commited on
Commit
565b5c3
·
verified ·
1 Parent(s): 42561a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -2,10 +2,14 @@ import os
2
  import cv2
3
  import numpy as np
4
 
 
 
 
 
5
  def compare_images(image1, image2):
6
  # Read the images
7
- img1 = cv2.imread(r"C:\Users\nikit\OneDrive\Desktop\Test1")
8
- img2 = cv2.imread(r"C:\Users\nikit\OneDrive\Desktop\Test2")
9
 
10
  # Check if both images are loaded properly
11
  if img1 is None or img2 is None:
 
2
  import cv2
3
  import numpy as np
4
 
5
+ staff_folder_path = r"C:\Users\nikit\OneDrive\Desktop\Test1" # Replace with the correct path
6
+ unknown_folder_path = r"C:\Users\nikit\OneDrive\Desktop\Test2" # Replace with the correct path
7
+
8
+
9
  def compare_images(image1, image2):
10
  # Read the images
11
+ img1 = cv2.imread(staff_folder_path)
12
+ img2 = cv2.imread(unknown_folder_path)
13
 
14
  # Check if both images are loaded properly
15
  if img1 is None or img2 is None: