去掉照片组件
This commit is contained in:
@@ -348,11 +348,11 @@ class KidPhotoExtractorPlugin(MessagePluginInterface):
|
||||
|
||||
@property
|
||||
def version(self) -> str:
|
||||
return "1.0.0"
|
||||
return "0.0.1"
|
||||
|
||||
@property
|
||||
def description(self) -> str:
|
||||
return "提供小朋友照片提取和分类功能,基于人脸识别技术"
|
||||
return "未完成-提供小朋友照片提取和分类功能,基于人脸识别技术"
|
||||
|
||||
@property
|
||||
def author(self) -> str:
|
||||
@@ -400,7 +400,10 @@ class KidPhotoExtractorPlugin(MessagePluginInterface):
|
||||
self.command_format = self._config.get("KidPhotoExtractor", {}).get("command-format",
|
||||
"使用 #开始分析照片 [目录路径] 开始分析")
|
||||
self.enable = self._config.get("KidPhotoExtractor", {}).get("enable", True)
|
||||
|
||||
# 只在插件启用时初始化数据库和其他组件 TODO,现在过于复杂,暂时不启用
|
||||
if not self.enable:
|
||||
self.LOG.info(f"[{self.name}] 插件已禁用,跳过组件初始化")
|
||||
return True
|
||||
# 初始化组件
|
||||
self.face_analyzer = FaceAnalyzer()
|
||||
self.face_grouper = FaceGrouper()
|
||||
|
||||
Reference in New Issue
Block a user