资源简介
DeepFace实现人脸识别 并画出特征点和人脸框 代码下完后 直接用pycharm就可以运行 运行的时候 请先根据代码里的download.sh 将需要的文件下载下来 放到download.sh文件 所在目录
代码片段和文件信息
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import subprocess
import setuptools
_VERSION = ‘0.1.1‘
cwd = os.path.dirname(os.path.abspath(__file__))
subprocess.check_output([“bash“ “deepface/detectors/dlib/download.sh“] cwd=cwd)
subprocess.check_output([“bash“ “deepface/detectors/ssd/download.sh“] cwd=cwd)
subprocess.check_output([“bash“ “deepface/recognizers/vggface/download.sh“] cwd=cwd)
subprocess.check_output([“bash“ “deepface/recognizers/vggface2_resnet/download.sh“] cwd=cwd)
# ‘opencv-python >= 3.3.1‘
REQUIRED_PACKAGES = [
‘tensorflow >= 1.7.0‘
‘dill >= 0.2.7.1‘
‘dlib==19.7.0‘
‘h5py >= 2.8.0‘
‘matplotlib >= 2.2.2‘
‘numpy >= 1.14.3‘
‘pyyaml >= 3.0.0‘
‘scikit-learn >= 0.18.1‘
‘scikit-image >= 0.13.1‘
‘scipy >= 1.1.0‘
‘tqdm >= 4.23.4‘
]
DEPENDENCY_linkS = [
]
setuptools.setup(
name=‘deepface‘
version=_VERSION
description=
‘Deep Learning Models for Face Detection/Recognition/Alignments implemented in Tensorflow‘
install_requires=REQUIRED_PACKAGES
dependency_links=DEPENDENCY_linkS
url=‘https://github.com/ildoonet/deepface‘
license=‘Apache License 2.0‘
package_dir={}
packages=setuptools.find_packages(exclude=[‘tests‘])
package_data={‘deepface‘: [‘detectors/dlib/shape_predictor_68_face_landmarks.dat‘
‘detectors/ssd/graph_inception_v2_fddb.pb‘
‘detectors/ssd/graph_mobilenet_v2_fddb_180627.pb‘
‘detectors/ssd/graph_mobilenet_v2_all_180627.pb‘
‘confs/basic.yaml‘
‘recognizers/vggface/weight.mat‘
‘recognizers/vggface/db_blackpink.pkl‘
‘recognizers/vggface2_resnet/db_blackpink.pkl‘
‘recognizers/vggface2_resnet/labels.npy‘
‘recognizers/vggface2_resnet/weight.h5‘]
}
)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-04-17 18:23 deepface-master\
文件 1389 2018-12-20 23:37 deepface-master\.gitignore
文件 0 2018-12-20 23:37 deepface-master\.gitmodules
目录 0 2019-04-18 13:48 deepface-master\.idea\
文件 408 2019-04-17 18:17 deepface-master\.idea\deepface-master.iml
文件 294 2019-04-17 18:17 deepface-master\.idea\misc.xm
文件 289 2019-04-17 18:17 deepface-master\.idea\modules.xm
文件 21230 2019-04-18 13:48 deepface-master\.idea\workspace.xm
目录 0 2019-04-18 13:41 deepface-master\bin\
文件 76602 2019-04-18 13:48 deepface-master\bin\db.pkl
文件 13212 2019-04-18 13:41 deepface-master\bin\face.py
文件 2278 2018-12-20 23:37 deepface-master\bin\generate_bench_result.py
文件 702 2018-12-20 23:37 deepface-master\bin\hyperopt_main.py
文件 823 2018-12-20 23:37 deepface-master\bin\hyperopt_optimizer.py
文件 161926 2019-04-18 13:48 deepface-master\bin\result.jpg
文件 1382 2018-12-20 23:37 deepface-master\bin\run_example.py
目录 0 2019-04-17 18:28 deepface-master\deepface\
目录 0 2019-04-17 18:28 deepface-master\deepface\confs\
文件 642 2018-12-20 23:37 deepface-master\deepface\confs\basic.yaml
文件 674 2018-12-20 23:37 deepface-master\deepface\confs\conf.py
文件 0 2018-12-20 23:37 deepface-master\deepface\confs\__init__.py
目录 0 2019-04-17 18:28 deepface-master\deepface\confs\__pycache__\
文件 1046 2019-04-17 18:28 deepface-master\deepface\confs\__pycache__\conf.cpython-36.pyc
文件 151 2019-04-17 18:28 deepface-master\deepface\confs\__pycache__\__init__.cpython-36.pyc
目录 0 2019-04-17 18:28 deepface-master\deepface\detectors\
文件 351 2018-12-20 23:37 deepface-master\deepface\detectors\detector_ba
文件 2016 2018-12-20 23:37 deepface-master\deepface\detectors\detector_dlib.py
文件 4034 2018-12-20 23:37 deepface-master\deepface\detectors\detector_ssd.py
目录 0 2019-04-18 09:26 deepface-master\deepface\detectors\dlib\
文件 417 2018-12-20 23:37 deepface-master\deepface\detectors\dlib\download.sh
目录 0 2019-04-18 09:27 deepface-master\deepface\detectors\ssd\
............此处省略72个文件信息
- 上一篇:智联招聘爬虫
- 下一篇:期末大作业 我的web.rar
评论
共有 条评论