Skip to content

Commit

Permalink
add video detection mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sthanhng committed Oct 18, 2018
1 parent 0a25175 commit 7abbced
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yoloface_gpu.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import argparse

from PIL import Image
from YOLO import YOLO
from YOLO import YOLO, detect_video


#####################################################################
Expand All @@ -21,6 +21,8 @@ def get_args():
default=(416, 416), help='input image size')
parser.add_argument('--image', default=False, action="store_true",
help='image detection mode')
parser.add_argument('--video', type=str, default='samples/subway.mp4',
help='path to the video')
parser.add_argument('--output', type=str,
default='', help='image/video output path')
args = parser.parse_args()
Expand Down Expand Up @@ -53,6 +55,7 @@ def _main():
else:
print('[i] ==> Video detection mode\n')
# Call the detect_video method here
detect_video(YOLO(args), args.video)

print('Well done!!!')

Expand Down

0 comments on commit 7abbced

Please sign in to comment.