PlayerDetection
PlayerDetection copied to clipboard
Not running. What are dependencies?
I have tried several virtual environments to run this code, however, didn't make it to run. Could you share your environment and dependencies? For example, I ran it with Pyhon=2.7, numpy=1.16, opencv=2.4 in Ubuntu 18.04 and got this error:
OpenCV Error: Assertion failed ((scn == 3 || scn == 4) && (depth == CV_8U || depth == CV_32F)) in cvtColor, file /home/travis/miniconda/conda-bld/work/opencv-2.4.11/modules/imgproc/src/color.cpp, line 3961
Traceback (most recent call last):
File "player_detection.py", line 16, in <module>
hsv = cv2.cvtColor(image,cv2.COLOR_BGR2HSV)
cv2.error: /home/travis/miniconda/conda-bld/work/opencv-2.4.11/modules/imgproc/src/color.cpp:3961: error: (-215) (scn == 3 || scn == 4) && (depth == CV_8U || depth == CV_32F) in function cvtColor