def __init__(self, scale=1.08):
script_path = common.get_script_path()
self.cascade = cv2.CascadeClassifier(script_path + "/haarcascade_frontalface_alt.xml")
self.cascade_profile = cv2.CascadeClassifier(script_path + '/haarcascade_profileface.xml')
self.scale = scale
self.hog = cv2.HOGDescriptor()
self.hog.load(script_path + '/hard_negative_svm/hog.xml')
self.svm = cv2.ml.SVM_load(script_path + '/hard_negative_svm/output_frontal.xml')
self.svm_profile = cv2.ml.SVM_load(script_path + '/hard_negative_svm/output_profile.xml')
评论列表
文章目录