Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
sthanhng committed Oct 15, 2018
1 parent fa63e22 commit 4867558
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
Binary file modified outputs/meeting_11_304_yoloface.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified outputs/outside_000001_yoloface.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions yoloface.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ def _main():
cv2.waitKey(1000)
break

fps = FPS().start()

# Create a 4D blob from a frame.
blob = cv2.dnn.blobFromImage(frame, 1 / 255, (IMG_WIDTH, IMG_HEIGHT),
[0, 0, 0], 1, crop=False)
Expand All @@ -123,13 +121,9 @@ def _main():
print('[i] ==> # detected faces: {}'.format(len(faces)))
print('#' * 60)

# update fps counter
fps.update()
fps.stop()

# initialize the set of information we'll displaying on the frame
info = [
('number of faces detected', '{}(s)'.format(len(faces)))
('number of faces detected', '{}'.format(len(faces)))
]

for (i, (txt, val)) in enumerate(info):
Expand Down

0 comments on commit 4867558

Please sign in to comment.