私はopencvが初めてです。Python コードのコンパイル中に、次のエラーが発生します。
TypeError: argument 'image' must be iplimage
iplimage
何が何で、なぜ私がこれを取得しているのかを説明してください.
これが私のコードです:
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
ありがとう。