1. 程式人生 > >微信頭像新增聖誕帽原始碼

微信頭像新增聖誕帽原始碼

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