【发布时间】:2017-10-16 16:51:16
【问题描述】:
我有这行使用 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。
【问题讨论】: