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

运行set_other_faces问题 #13

Open
KalElSuper opened this issue Mar 25, 2018 · 1 comment
Open

运行set_other_faces问题 #13

KalElSuper opened this issue Mar 25, 2018 · 1 comment

Comments

@KalElSuper
Copy link

OpenCV Error: Assertion failed (ssize.area() > 0) in resize, file /home/travis/miniconda/conda-bld/conda_1486587069159/work/opencv-3.1.0/modules/imgproc/src/imgwarp.cpp, line 3229
Traceback (most recent call last):
File "/home/wanlu/PycharmProjects/untitled1/set_other_faces.py", line 46, in
face = cv2.resize(face, (size, size))
cv2.error: /home/travis/miniconda/conda-bld/conda_1486587069159/work/opencv-3.1.0/modules/imgproc/src/imgwarp.cpp:3229: error: (-215) ssize.area() > 0 in function resize

请问您遇到过这种情况吗?网上说是图像文件为空,但是我设置了判断也无济于事,期待您的回复!

@seathiefwang
Copy link
Owner

这个问题没遇到过,看一下生成的图片是否有出错了,打印一下,看一下是哪一张图片出错了,剔除错误的图片。

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