提交 c96b010c 编写于 作者: Y YumiLee 提交者: Adam Geitgey

Add facerec_from_webcam_multiprocessing.py

上级 e88c2f30
......@@ -166,7 +166,8 @@ if __name__ == '__main__':
delay = time.time() - tmp_time
tmp_time = time.time()
fps_list.append(delay)
if len(fps_list) > 5 * worker_num: fps_list.pop(0)
if len(fps_list) > 5 * worker_num:
fps_list.pop(0)
fps = len(fps_list) / numpy.sum(fps_list)
print("fps: %.2f" % fps)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册