face01lib.models のソースコード

__author__ = 'Original code written by Adam Geitgey, modified by YOSHITSUGU KESAMARU'
__email__ = 'y.kesamaru@tokai-kaoninsho.com'
__version__ = '2.2.02'

from pkg_resources import resource_filename


[ドキュメント] class Models: # DATA_PATH = pkg_resources.resource_filename('<package name>', 'data/')
[ドキュメント] def pose_predictor_five_point_model_location(self): return resource_filename(__name__, "shape_predictor_5_face_landmarks.dat")
[ドキュメント] def dlib_resnet_model_location(self): return resource_filename(__name__, "dlib_face_recognition_resnet_model_v1.dat")
[ドキュメント] def cnn_face_detector_model_location(self): return resource_filename(__name__, "mmod_human_face_detector.dat")
[ドキュメント] def anti_spoof_model_location(self): return resource_filename(__name__, "model_float32.onnx")
[ドキュメント] def JAPANESE_FACE_V1_model_location(self): return resource_filename(__name__, "JAPANESE_FACE_V1.onnx")