An error occured running python_fu_pattern_cubic

Asked By 0 points N/A Posted on -
qa-featured

Hi Expert Friends,

Friends I got this warning error message when I try to embed a c function in python script. I am just a beginner so this kind of error makes me more tired, need help badly. I have doubt whether the coord always tuple? What is wrong with the program? Please assist me to solve the error. Your help is appreciated.

An error occured running python_fu_pattern_cubic

SystemError: new style getargs

format but argument is not a tuple

SHARE
Answered By 0 points N/A #191730

An error occured running python_fu_pattern_cubic

qa-featured

Hello,

Try following steps to solve the issue when you get this error message:

You need to enter the ksize as a tuple of two elements. See below example:

(2,2)

for medianBlur, ksize = 3 is sufficient.

The code is something like this:

im = cv2.imread('./test_imgs/zzzyj.jpg')
cv2.imshow('Image', cv2.blur(im, (3,3)))
cv2.waitKey(0)
cv2.destroyAllWindows()

Login/Register to Answer

Related Questions