imgprocessing/task.py
def face_rec(self, image_path):
    """
    Function to retry the vectors from a photo
    """
    photo = face_recognition.load_image_file(image_path)
    
    try:
        photo_encoding = list(face_recognition.face_encodings(photo)[0])
        return image_path, photo_encoding

    except IndexError:
        return image_path, None

    Function to retry the vectors from a photo
    
Function to retry the vectors from a photo
Function to retry the vectors from a photo
def face_rec(self, image_path):
    photo = face_recognition.load_image_file(image_path)
    try:
        photo_encoding = list(face_recognition.face_encodings(photo)[0])
        return image_path, photo_encoding
    except IndexError:
        return image_path, None
def face_rec ( self , image_path ) : photo = face_recognition . load_image_file ( image_path ) try : photo_encoding = list ( face_recognition . face_encodings ( photo ) [ 0 ] ) return image_path , photo_encoding except IndexError : return image_path , None
Function to retry the vectors from a photo
Function to retry the vectors from a photo
"""
    Function to retry the vectors from a photo
    """
self
image_path