From 259f23e7dc1ce1e336bc4a6ff925b90fb8943c01 Mon Sep 17 00:00:00 2001 From: SadhulaSaiKumar Date: Wed, 10 Jan 2024 12:31:12 +0000 Subject: [PATCH] Update 'Attendence/attendence.py' --- Attendence/attendence.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Attendence/attendence.py b/Attendence/attendence.py index daa48d9..4ffce04 100644 --- a/Attendence/attendence.py +++ b/Attendence/attendence.py @@ -539,22 +539,23 @@ def register(): # multiprocessing - pool_size = multiprocessing.cpu_count() * 2 - with multiprocessing.Pool(pool_size) as pool: - try: - results = pool.map(registered, url_list) - except IndexError: - pass - print('face not found') - except FileNotFoundError: - pass + #pool_size = multiprocessing.cpu_count() * 2 + #with multiprocessing.Pool(pool_size) as pool: + # try: + # results = pool.map(registered, url_list) + # except IndexError: + # pass + # print('face not found') + # except FileNotFoundError: + # pass #os.remove(img) # return 'unable to recognize face' - pool.close() + # pool.close() #return results[0] + result=registered(url_list) return 'Successfully saved encoding.........'