DETECTING ACCURACY LEVEL OF THE KNOWN AND TEST FACES USING PYTHON

The following code shows the accuracy level of the trained face and test face. If the value is small, then the accuracy is high. Packages to install : pip install openCV. pip install Face Recognition. pip install numpy. Images used : Trained Face Test Face Program : # Detecting accuracy level of the trained image and test image import cv2 import face_recognition import numpy as np # known image imgElon = face_recognition.load_image_file( "images/Elon Musk.jpg" ) # imgElon=cv2.imread("images/Elon Musk.jpg") imgElon = cv2.cvtColor(imgElon , cv2.COLOR_BGR2RGB) # Test image imgElonTest = face_recognition.load_image_file( "images/Elon Musk Test.jpg" ) # imgElon=cv2.imread("test images/Elon Musk Test.jpg") imgElonTest = cv2.cvtColor(imgElonTest , cv2.COLOR_BGR2RGB) # known image location & encodings faceLoc = ...