[英]face recognition attendance system with opencv and dlib face_recognition libraries giving incorrect recognitions
[英]In my face recognition attendance marking system exit button cannot working
PS C:\Users\ARISE\Documents\Python_Test_Projects> cd "c:\Users\ARISE\Documents\Python_Test_Projects"
PS C:\Users\ARISE\Documents\Python_Test_Projects> python -u "c:\Users\ARISE\Documents\Python_Test_Projects\login.py"
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:37: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
img1=img1.resize((100,100),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:207: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
img=img.resize((1366,130),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:216: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
bg1=bg1.resize((1366,768),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:232: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
std_img_btn=std_img_btn.resize((180,180),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:243: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
det_img_btn=det_img_btn.resize((180,180),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:254: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
att_img_btn=att_img_btn.resize((180,180),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:265: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
hlp_img_btn=hlp_img_btn.resize((180,180),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:279: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:312: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead. exi_img_btn=exi_img_btn.resize((180,180),Image.ANTIALIAS)
上面提到的錯誤在我的 vs code 終端中出現
在此處輸入圖片描述在上面的附圖中,我向您展示了我面臨的是哪種類型的問題。 我在上面標記的十字按鈕不起作用。 請盡快幫助我。
Image.ANTIALIAS
不再使用,你必須使用Image.Resampling.LANCZOS
用於更高版本的枕頭。 https://pillow.readthedocs.io/en/stable/deprecations.html
要使關閉按鈕起作用,您可以使用Image.close()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.