Skip to content

Commit

Permalink
Add facerec_from_webcam_multiprocessing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chn-lee-yumi authored and ageitgey committed Apr 15, 2019
1 parent e88c2f3 commit c96b010
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c96b010

Please sign in to comment.