Visual Basic 2008 と Emgu CV を使用して、自分の PC で Web カメラのストリームをキャプチャできます。私がやりたいことは、Capture = New Capture() を使用して、その URL を知っている IP カメラに接続することです。
ここに私が持っているコードがあります:
Imports Emgu.CV
Imports Emgu.CV.Util
Imports Emgu.CV.Structure
Public Class Form1
Dim capturez As Capture = New Capture("rtsp://[IP Address]/mpeg4/media.amp")
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim imagez As Image(Of Bgr, Byte) = capturez.QueryFrame()
PictureBox1.Image = imagez.ToBitmap()
End Sub
End Class
次のエラーが表示されます: rtsp://[IP アドレス]/mpeg4/media.amp からキャプチャを作成できません
Capture = New Capture を使用してこれを行うことは可能ですか? そうでない場合、他の方法はありますか?
ありがとう。