diff --git a/apps/hrm/services.py b/apps/hrm/services.py index 78569a92..576e2de8 100755 --- a/apps/hrm/services.py +++ b/apps/hrm/services.py @@ -362,7 +362,7 @@ class HrmService: @classmethod - def get_facedata_from_img(cls, img_path): + def get_facedata_from_img_x(cls, img_path): import face_recognition try: photo_path = settings.BASE_DIR + img_path @@ -418,6 +418,7 @@ class HrmService: global_face = cache.get('global_face') dfs = face_find(img_path=img_path, global_face=global_face) # dfs = DeepFace.find(img_path=img_path, db_path=db_path) + os.remove(img_path) df = dfs[0] if not df.empty: matched = df.iloc[0].identity