Ai
4 Star 1 Fork 0

wjwilliam/software_engineering-dlib_face_recognition

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Plugins.py 617 Bytes
一键复制 编辑 原始数据 按行查看 历史
royalwjw 提交于 2022-06-18 00:54 +08:00 . init&重构项目
import os,sys
class Plugins():
def __init__(self,path):
self.path = path#path
sys.path.append(self.path)#加入查找路径
self.controls_class = {}
self.load_plugins()
def load_plugins(self):
for file_name in os.listdir(self.path):
if not file_name.endswith(".py") or file_name.startswith("_"):
continue
plugin_name=os.path.splitext(file_name)[0]
plugin = __import__(plugin_name)
clazz = plugin.get_plugin_class()
self.controls_class[clazz.label]=clazz
return self.controls_class
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wjwilliam/software_engineering-dlib_face_recognition.git
git@gitee.com:wjwilliam/software_engineering-dlib_face_recognition.git
wjwilliam
software_engineering-dlib_face_recognition
software_engineering-dlib_face_recognition
master

搜索帮助