Files
face_unlock/app/config/__init__.py
2024-09-27 01:20:28 +08:00

35 lines
1000 B
Python
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from app.lib.face.facepp import API, File
class Config:
# 管理员头像地址,需要替换成你自己的头像
administrators = "./res/img/administrators.jpg"
# 摄像头实时捕获的截图存放地址
current_user = "./res/img/current_user.jpg"
# face++ api 初始化
faceApi = API()
# 是否处于锁屏状态False 解锁状态下True 锁屏状态下
is_locked = False
# 电脑锁屏密码
password = "<??>"
# 是否是第一次运行False 是 不锁屏true 不是 进行锁屏
is_first_count = 1
# pyobjc-framework-Quartz 获取到的状态
cg_session_info = None
author = 'bmy'
app_name = 'FaceUnlock'
app_env = '%s_ENV' % app_name.upper()
version = '1.3.3'
github_page = 'https://github.com/%s/%s' % (author, app_name)
releases_url = '%s/releases' % github_page
protector = '[protector]'
idle_time = 30
idle_time_short = 2
unlock_count_limit = 3
restart_deadline = 0.2