I am new at opencv. While compiling python code, I am getting the following error.
TypeError: argument 'image' must be iplimage
Please explain what iplimage
is and why I am getting this.
Here is my code:
import cv
capture=cv.CaptureFromCAM(0)
image=cv.QueryFrame(capture)
writer=cv.CreateVideoWriter("output.avi", 0, 15,(800,600) , 1)
count=0
cv.NamedWindow('Image_Window')
while count<250:
image=cv.QueryFrame(capture)
cv.WriteFrame(writer, image)
cv.ShowImage('Image_Window',image)
cv.WaitKey(2)
count+=1
Thanks.