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

segmentation fault (core dumped) #3

Open
dragonxtek opened this issue Sep 28, 2017 · 1 comment
Open

segmentation fault (core dumped) #3

dragonxtek opened this issue Sep 28, 2017 · 1 comment

Comments

@dragonxtek
Copy link

I put a video and I get the following error when I run it:

python test.py
Traceback (most recent call last):
File "test.py", line 123, in
contours, hierarchy = cv2.findContours(thresholdImage, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
ValueError: too many values to unpack
[1] 16217 segmentation fault (core dumped) python test.py

@IT-Danny
Copy link

replace the following code in the test.py:

contours, hierarchy = cv2.findContours(thresholdImage, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
to
(_,contours, hierarchy) = cv2.findContours(thresholdImage, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)

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