Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not running. What are dependencies? #2

Open
jibikbam opened this issue Oct 21, 2020 · 0 comments
Open

Not running. What are dependencies? #2

jibikbam opened this issue Oct 21, 2020 · 0 comments

Comments

@jibikbam
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant