diff --git a/apps/hrm/services.py b/apps/hrm/services.py index b8973eb9..8c87925e 100755 --- a/apps/hrm/services.py +++ b/apps/hrm/services.py @@ -369,8 +369,7 @@ class HrmService: def get_facedata_from_img_x(cls, img_path): import face_recognition try: - photo_path = settings.BASE_DIR + img_path - picture_of_me = face_recognition.load_image_file(photo_path) + picture_of_me = face_recognition.load_image_file(img_path) my_face_encoding = face_recognition.face_encodings(picture_of_me, num_jitters=2)[0] face_data_list = my_face_encoding.tolist() return face_data_list, ''