hkair / Basketball-Action-Recognition

Spatio-Temporal Classification of 🏀 Basketball Actions using 3D-CNN Models on the SpaceJam Dataset.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: (-215:Assertion failed) type == CV_32FC1 || type == CV_32FC2 || type == CV_64FC1 || type == CV_64FC2 in function 'cv::dft'

GromShine opened this issue · comments

Dear author, after downloading yolov3.cfg & weights, and put them into main folder, and put lebron_shoots.mp4 into videos folder, I met the following problem in 'main.py'


4.5.1
Press q to quit selecting boxes and start tracking
Press any other key to select next object
113
Selected bounding boxes [(0, 0, 0, 0)]
Traceback (most recent call last):

File "D:\Basketball-Action-Recognition\main.py", line 547, in
main()

File "D:\Basketball-Action-Recognition\main.py", line 494, in main
videoFrames, playerBoxes, Width, Height, colors = extractFrame(args.videoPath)

File "D:\Basketball-Action-Recognition\main.py", line 180, in extractFrame
trackers.add(createTrackerByName(args.tracker), frame, bbox)

error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-r2ue8w6k\opencv\modules\core\src\dxt.cpp:3506: error: (-215:Assertion failed) type == CV_32FC1 || type == CV_32FC2 || type == CV_64FC1 || type == CV_64FC2 in function 'cv::dft'