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

关于cv.split #5

Open
anbency opened this issue Jan 8, 2018 · 1 comment
Open

关于cv.split #5

anbency opened this issue Jan 8, 2018 · 1 comment

Comments

@anbency
Copy link

anbency commented Jan 8, 2018

r, g, b, a = cv.split(img)

ValueError: not enough values to unpack (expected 4, got 3)

请问是opencv的版本问题么?我的是3.4.0

@LiuXiaolong19920720
Copy link
Owner

@anbency 不是OpenCV的问题,原因应该是你用的不是PNG格式的图片或者用的不是包含透明通道的png图片。

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