emgucv c#高CPU消耗

时间:2018-05-29 14:21:20

标签: c# cpu emgucv frame-rate

我的相机:1920 * 1080p 30fps 我的电脑:i5 4gb ram

当我使用c#获取视频流时,pc cpu使用%50值。这对我来说是个问题。如何降低这种消费价值。不改变fps。

我的代码:

public Form1()
{
    InitializeComponent();
    try
    {
        _capture = new VideoCapture("rtsp://192.168.3.2/stream/profile1=u");
        _capture.ImageGrabbed += ProcessFrame;

    }
}

private void ProcessFrame(object sender, EventArgs arg)
{
    Mat frame = new Mat();
    _capture.Retrieve(frame, 0);
    ımageBox1.Image = frame;

}
谢谢..

0 个答案:

没有答案