Open CV: Error Code Debug Via Spyder

53 views
Skip to first unread message

Rann-kkin José

unread,
Dec 1, 2020, 8:19:30 PM12/1/20
to spyder
Hi All and thanx for responding!
i am constantly getting this error when debugging my code and despite my numerous google searches, the error is still evading me!

is this a root folder issue?/ pointing the data to the code via the root path?!??!!
I am uncertain hence my request for help!

Can a pro help me out here, please? so that I can move forward!

thanx in advance Mat!

MY Error*****************

runcell('Run Demo From Example', '/Users/mmgp/opt/anaconda3/Spyder Files/3DCNN-master/packages.py')
  0%|                                                     | 0/5 [00:00<?, ?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 <module>
    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,
Reply all
Reply to author
Forward
0 new messages