Deep Learning Tutorial to Build your own Video Classification Model

Good day! I am trying to implement this tutorial ( in our Engagement Recognition Thesis. Although I get an error,

IndexError Traceback (most recent call last)
3 count = 0
4 videoFile = train[‘video_name’][i]
----> 5 cap = cv2.VideoCapture(‘UCF/’+videoFile.split(’ ‘)[0].split(’/’)[1]) # capturing the video from the given path
6 frameRate = cap.get(5) #frame rate
7 x=1

IndexError: list index out of range

Is this because my filename does not have “/”?. The video’s name in my dataset are just numbers (12345678.avi). What can you suggest as a work-around? Thanks

© Copyright 2013-2020 Analytics Vidhya