0

当我尝试更改感兴趣的图像通道 (setImageCOI) 时,Python 给了我这个错误:

im = cv2.imread('image.jpg')
cv2.setImageCOI(im, 1)
AttributeError: 'module' object has no attribute 'setImageCOI'

http://opencv.willowgarage.com/documentation/python/operations_on_arrays.html

我是否需要专门安装允许对阵列进行操作的模块?

4

1 回答 1

1

该方法在下面的cv模块中实现SetImageCOI(注意大写S):

import cv
cv.SetImageCOI(im, 1)
于 2012-10-06T07:02:17.913 回答