SystemError:新样式的getargs格式,但参数不是元组,Python 2.7-OpenCV

时间:2018-12-02 14:08:38

标签: python image opencv image-processing filter

我当前在

上出错
cv2.resize()

open-cv的功能

scaling = 0.4
hsize = (6 * sigma + 1), (6 * sigma + 1)# The filter size.
gaussian = gauss2D(hsize, sigma)
im = filter2(gaussian, im)# Smoothed image.
im = cv2.resize(im, scaling)  

在IDLE中返回此错误:

 [[ 0.14417706  0.18959087  0.2234258  ...,  0.16840368  0.15120561 0.11965712]
[ 0.19098209  0.25031347  0.29384765 ...,  0.21637971  0.19531406  0.1554829 ]
[ 0.22742296  0.29720085  0.34758183 ...,  0.24855714  0.22531588 0.1804396 ]]
im = cv2.resize(im2, scaling)
TypeError: src is not a numerical tuple
SystemError: new style getargs format but argument is not a tuple

0 个答案:

没有答案