def __init__(self):
global et
global recognizer
global dictid, labels
self.engine1 = pyttsx.init()
self.engine = pyttsx.init()
self.engine1.say('Initializing components. All systems ready.')
self.engine1.runAndWait()
self.bridge = CvBridge()
self.image_sub = rospy.Subscriber("/camera/rgb/image_raw",Image,self.callback)
recognizer = cv2.face.createLBPHFaceRecognizer()
et = libs.EyeTracker("cascades/haarcascade_frontalface_alt2.xml")
i=0
path = 'faces'
images,labels,dictid=libs.read_data(path)
print labels
recognizer.train(images, np.array(labels))
print 'termine'
self.num=0
asus.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录