我编写了下面的代码来使用Python和OpenCV规范化图像。当我试图编译下面的代码时,我得到了下面的错误。你能帮我解决这个问题吗?你知道吗
`import cv2.cv as cv`
` import numpy`
import normalize
img=cv.LoadImage("img.jpg",0)
mat=cv.GetMat(img)
a = numpy.asarray(mat) #store the pixels in the input array
dst=[] # declare the output array
cv.Normalize(a,dst,0,255,cv.NORM_L1)
print a
目前没有回答
相关问题 更多 >
编程相关推荐