From c96b010c02f15e8eeb0f71308c641179ac1f19bb Mon Sep 17 00:00:00 2001 From: YumiLee Date: Sat, 25 Aug 2018 00:08:25 +0800 Subject: [PATCH] Add facerec_from_webcam_multiprocessing.py --- .../facerec_from_webcam_multiprocessing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename facerec_from_webcam_multiprocessing.py => examples/facerec_from_webcam_multiprocessing.py (98%) diff --git a/facerec_from_webcam_multiprocessing.py b/examples/facerec_from_webcam_multiprocessing.py similarity index 98% rename from facerec_from_webcam_multiprocessing.py rename to examples/facerec_from_webcam_multiprocessing.py index d45fc3e4c..4a960024e 100644 --- a/facerec_from_webcam_multiprocessing.py +++ b/examples/facerec_from_webcam_multiprocessing.py @@ -166,7 +166,8 @@ def process(worker_id, read_frame_list, write_frame_list): 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)