rtsp流中的EMGUCV延迟

时间:2018-07-21 10:18:07

标签: vb.net video-capture emgucv

捕获rtsp流时我有2秒的延迟,有人可以帮我减少延迟吗?

下面是我正在尝试的代码

将imgFrame视作图像(Bgr,字节)     昏暗的vidCapture作为捕获

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    vidCapture = New Capture("rtsp://......") ' Put the proper arguments in here

    AddHandler Application.Idle, AddressOf AppIdle
End Sub

Public Sub AppIdle(ByVal sender As System.Object, ByVal e As System.EventArgs)
    Dim ImageAsMat As Mat

    ImageAsMat = vidCapture.QueryFrame()
    imgFrame = ImageAsMat.ToImage(Of Bgr, Byte)()
    ImageBox1.Image = imgFrame
    'PictureBox1.Image = imgFrame ' this is where captured image go.
End Sub

0 个答案:

没有答案