You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed accordingly your instruction in README file to get the video up and running. However, In step 5. When the video is loaded and freezed. I click 4 times to make UP/DOWN/LEFT/RIGHT corner. The program throws an error this like:
raceback (most recent call last): File "main.py", line 85, in <module> thresh = getThresholdedFrame(fgbg, frame) File "football-analysis/football-stats/lib/fgbg_calculations.py", line 15, in getThresholdedFrame fgmask = fgbg.apply(image, learningRate=0.02) TypeError: Incorrect type of self (must be 'BackgroundSubtractorMOG2' or its derivative)
I am not a Python developer but I am guessing the reason I getting the issue is because I use Python 3?
I would like to ask if you have noticed this issue before? And do you know how to resolve it?
Dear Mr. @cmihaylov and @Bratanov.
Thank you for putting up the libraries.
I followed accordingly your instruction in README file to get the video up and running. However, In step 5. When the video is loaded and freezed. I click 4 times to make UP/DOWN/LEFT/RIGHT corner. The program throws an error this like:
raceback (most recent call last): File "main.py", line 85, in <module> thresh = getThresholdedFrame(fgbg, frame) File "football-analysis/football-stats/lib/fgbg_calculations.py", line 15, in getThresholdedFrame fgmask = fgbg.apply(image, learningRate=0.02) TypeError: Incorrect type of self (must be 'BackgroundSubtractorMOG2' or its derivative)
I am not a Python developer but I am guessing the reason I getting the issue is because I use Python 3?
I would like to ask if you have noticed this issue before? And do you know how to resolve it?
Another guess is because the video, which I am using, was not the right format? I am using this video: https://www.youtube.com/watch?v=DTEA44jrkWw&t=2s
So I am looking forward to seeing your comment!
Best regards,
Vy
The text was updated successfully, but these errors were encountered: