微信头像添加圣诞帽源码

源码地址:https://github.com/MFYang722/snippet
在pycharm里运行,opencv报错:

D:\python1\python.exe E:/python学习资料/snippet-master/face_detect/face_detect.py
OpenCV Error: Assertion failed (dsize.area() || (inv_scale_x > 0 && inv_scale_y > 0)) in cv::resize, file ..\..\..\..\opencv\modules\imgproc\src\imgwarp.cpp, line 1835
Traceback (most recent call last):
  File "E:/pythonѧϰ����/snippet-master/face_detect/face_detect.py", line 22, in <module>
    hat = cv2.resize(hat, (0, 0), fx=scale, fy=scale)
cv2.error: ..\..\..\..\opencv\modules\imgproc\src\imgwarp.cpp:1835: error: (-215) dsize.area() || (inv_scale_x > 0 && inv_scale_y > 0) in function cv::resize

猜你喜欢

转载自blog.csdn.net/ulike_MFY/article/details/78904548