Facial Recognition Error
Posted: Wed Jan 22, 2025 7:43 pm
I am having a hard time with the last part of the code. I am getting an error after capturing a picture on my webcam. In the Zip files, there are no pictures or files in the "verification_images" folder. Should files be here?
Moderator Note: Project: https://www.sciencebuddies.org/science- ... ecognition
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-48-cd9a2c1b5feb> in <cell line: 0>()
6
7 # Call the real_time_verification function with the specified detection and verification thresholds
----> 8 real_time_verification(siamese_model, detection_threshold, verification_threshold)
1 frames
<ipython-input-43-d11e2371f158> in verify(model, detection_threshold, verification_threshold)
9
10 # Iterate through each image in the verification directory
---> 11 for image in os.listdir(verification_image_path):
12 # Preprocess input and validation images
13 input_img = preprocess(os.path.join(input_image_path, 'input_image.jpg'))
FileNotFoundError: [Errno 2] No such file or directory: '/content/drive/MyDrive/facial_recognition_with_dataset/application_data/verification_images'
Moderator Note: Project: https://www.sciencebuddies.org/science- ... ecognition
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-48-cd9a2c1b5feb> in <cell line: 0>()
6
7 # Call the real_time_verification function with the specified detection and verification thresholds
----> 8 real_time_verification(siamese_model, detection_threshold, verification_threshold)
1 frames
<ipython-input-43-d11e2371f158> in verify(model, detection_threshold, verification_threshold)
9
10 # Iterate through each image in the verification directory
---> 11 for image in os.listdir(verification_image_path):
12 # Preprocess input and validation images
13 input_img = preprocess(os.path.join(input_image_path, 'input_image.jpg'))
FileNotFoundError: [Errno 2] No such file or directory: '/content/drive/MyDrive/facial_recognition_with_dataset/application_data/verification_images'