Be sure to get opencv with numpy support. The sequence that works for me is IPL capture, conversion to cvMat, conversion to numpy:
import cv, numpy, pylab
capture = cv.CaptureFromCAM(0)
img = cv.QueryFrame(capture)
mat=cv.GetMat(img)
a = numpy.asarray(mat)
pylab.imshow(a)
, , pylab. opencv