Detecting objects in videos may take time. We will import the video name library.mp4 and perform prediction using detect_video method:
# # detect videos one at a time in videos/test folder
video = 'library.mp4'
detect_video(video, yolo, all_classes)
This yields the following prediction:
Fig 11.6: Prediction
Here, YOLO predicted a person and a bicycle with 100% confidence!