我有我試圖搶在RTSP幀,使用下面的代碼高清網絡攝像機「五花」圖片:EMGU QueryFrame返回了RTSP
//in Form_Load
Application.Idle += getNextFrame;
和事件處理程序:
private void getNextFrame(object sender, EventArgs ags)
{
//where _imgCount is the total image Grabs
lbl_Count.Text = _imgCount++.ToString();
// and ibLive is a Emgu ImageBox
ibLive.Image = capAxis.QueryFrame().Resize(640, 480, INTER.CV_INTER_AREA);
}
當我開始程序時,它會抓住20-40幀,然後在屏幕底部出現「條紋」。它總是在圖像的底部,但有時它佔用了一半的屏幕。
流的分辨率是1920×1080,它的採用MJPEG。我試過切換到h.264,但有相同的結果。
我正在使用Emgu版本x86-2.4.0.1717
任何想法? 謝謝。