类型为“System.AccessViolationException”EmguCV的未处理异常

时间:2013-05-15 01:06:28

标签: c# opencv computer-vision video-capture emgucv

我收到“我的代码中给出的类型'System.AccessViolationException'的未处理异常。我给出的视频文件大小为91 MB,RAM为4 GB(OS - Windows 32位)< / p>

  

“System.AccessViolationException”类型的未处理异常   发生在Emgu.CV.dll

     

附加信息:尝试读取或写入受保护的内存。   这通常表明其他内存已损坏。

 private static List<Image<Bgr, Byte>> GetVideoFrames(String Filename)
        {
            List<Image<Bgr, Byte>> image_array = new List<Image<Bgr, Byte>>();
            Capture _capture = new Capture(Filename);

            bool Reading = true;

            while (Reading)
            {
                Image<Bgr, Byte> frame = _capture.QueryFrame();
                if (frame != null)
                {
                    image_array.Add(frame.Copy());
                }
                else
                {
                    Reading = false;
                }
            }

            return image_array;
        }

这可能是视频文件大小的问题吗?我该怎么做才能解决这个问题?

0 个答案:

没有答案
相关问题