2
我有下面的代碼來顯示使用EmgucV在imagebox圖像:EmguCV試圖讀取或寫入保護內存
Capture capture;
Image<Bgr, Byte> image;
public Form1()
{
InitializeComponent();
Application.Idle += new EventHandler(Start);
}
void Start(object sender, EventArgs e)
{
capture = new Capture();
image = capture.QueryFrame();
imageBox1.Image = image;
}
我得到的異常Attempted to read or write protected memory
。我需要做些什麼來糾正這個問題?
是什麼類型imageBox1? – surfen 2012-04-02 22:26:49