支持91制片室和麻豆,优化图片裁剪功能添加了人脸识别模块

This commit is contained in:
hejianjun
2022-01-30 03:37:08 +08:00
parent 9a9d36672f
commit a84452ba1c
8 changed files with 449 additions and 45 deletions

View File

@@ -314,6 +314,22 @@ class Config:
except:
return "33,34"
def face_locations_model(self) -> str:
try:
return self.conf.get("face", "locations_model")
except:
return "hog"
def face_app_id(self) -> str:
return self.conf.get("face", "appid")
def face_api_key(self) -> str:
return self.conf.get("face", "key")
def face_app_secret(self) -> str:
return self.conf.get("face", "secret")
@staticmethod
def _exit(sec: str) -> None:
print("[-] Read config error! Please check the {} section in config.ini", sec)