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

Error with cv2.mean in bgsegm.py #2

Open
ngthanhtin opened this issue Jul 25, 2019 · 1 comment
Open

Error with cv2.mean in bgsegm.py #2

ngthanhtin opened this issue Jul 25, 2019 · 1 comment

Comments

@ngthanhtin
Copy link

Hi, I have encountered an error when test a new video on bgsegm.py.
This error is as below:
Traceback (most recent call last):
File "bgsegm.py", line 130, in
dict = classifycontours(contours)
File "bgsegm.py", line 31, in classifycontours
meanColor = cv2.mean(crop_img, mask=mask)
cv2.error: /io/opencv/modules/core/src/matrix.cpp:4845: error: (-215) A.size == arrays[i0]->size in function init

I use opencv 3.4.0.12
Could you help me to fix that problem :D

@HHIR
Copy link

HHIR commented Dec 18, 2019

@ngthanhtin I have the same error... I want to ask you did you solve your problem?

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

2 participants