def playVideo(video_urls):
video = imageio.get_reader(YOUTUBE_CLIPS_DIR + video_urls[0] + '.avi','ffmpeg')
for frame in video:
fr = cv2.cvtColor(frame,cv2.COLOR_BGR2RGB)
cv2.imshow('frame',fr)
if cv2.waitKey(40) & 0xFF == ord('q'):
break
cv2.destroyAllWindows()
评论列表
文章目录