您正在覆盖名称空间。仅使用
import cv,而不使用其他。
>>> import cv >>> w=500>>> no_of_bits=8>>> channels=3>>> h=500>>> image=cv.CreateImage((w,h),no_of_bits,channels) >>> print image<iplimage(nChannels=3 width=500 height=500 widthStep=1500 )>

您正在覆盖名称空间。仅使用
import cv,而不使用其他。
>>> import cv >>> w=500>>> no_of_bits=8>>> channels=3>>> h=500>>> image=cv.CreateImage((w,h),no_of_bits,channels) >>> print image<iplimage(nChannels=3 width=500 height=500 widthStep=1500 )>