OpenCv Error Persists

Hi All and thanx in advance for responding to my errors!

I tried pointing the directory of the image via open CV but still I am getting an error WHERE 40% of the data seems to be loading and then nothing occurs!

Can someone help me here, please?

MY ERROR************

it/s]OpenCV: Couldn’t read video stream from file “UCF101/test”
[ERROR:0] global /private/var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/pip-req-build-7r9u7hyj/opencv/modules/videoio/src/cap.cpp (142) open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.4.0) /private/var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/pip-req-build-7r9u7hyj/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can’t find starting number (in the name of file): UCF101/test in function ‘icvExtractPattern’

Traceback (most recent call last):
File “3dcnn.py”, line 179, in
main()
File “3dcnn.py”, line 120, in main
x, y = loaddata(args.videos, vid3d, args.nclass,
File “3dcnn.py”, line 78, in loaddata
X.append(vid3d.video3d(name, color=color, skip=skip))
File “/Users/mmgp/opt/anaconda3/Spyder Files/3DCNN-master/videoto3d.py”, line 25, in video3d
frame = cv2.resize(frame, (self.height, self.width))
cv2.error: OpenCV(4.4.0) /private/var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/pip-req-build-7r9u7hyj/opencv/modules/imgproc/src/resize.cpp:3929: error: (-215:Assertion failed) !ssize.empty() in function ‘resize’

40%|██████████████████ | 2/5 [00:00<00:00, 10.43it/s]

1 Like