Spaces:
Build error
Build error
Update app.py
Browse files
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(
|
| 8 |
-
img2 = cv2.imread(
|
| 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:
|