0
元组我使用这一行的OpenCV:关于SystemError:新型getargs格式,但参数不是OpenCV的
xsize = random.uniform(params['reshape_x_limits'][0],params['reshape_x_limits'][1])
ysize = random.uniform(params['reshape_x_limits'][0],params['reshape_x_limits'][1])
cv2.resize(fg,0,fg,xsize,ysize)
这给错误
SystemError: new style getargs format but argument is not a tuple
但是根据文档: https://docs.opencv.org/2.4/modules/imgproc/doc/geometric_transformations.html#resize
没有参数应该是元组。什么导致了这个错误?我正在使用Python 2.7和OpenCV 3.3.0.10。