繁体   English   中英

我的人脸识别考勤打分系统退出按钮不能用

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM