word_analyze = WordAnalyze() capture = cv2.VideoCapture(0) face_recognizer = FaceRecognizer(capture=capture) speech_recognizer = SpeechRecognizer() speech_recognizer.start() w=int(capture.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH )) h=int(capture.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT )) fourcc = cv2.cv.CV_FOURCC('m', 'p', '4', 'v') graph_drawer = GraphDrawer() graph_drawer.start() all_omorosa = OmoroiData() all_graph = Graph(color=(1.0,0.0,1.0),ylim=[all_omorosa.omoroi_min-1.0,all_omorosa.omoroi_max+1.0],ylabel="Omorosa") #if os.path.exists('movie.avi'): # os.remove('movie.avi') #out = cv2.VideoWriter('movie.avi',fourcc,7.5,(w,h)) count = 0 while(True): # 動画ストリームからフレームを取得 speech = speech_recognizer.get_speech() recogflg = speech_recognizer.recogflg