台式电脑执行DirectShow报错

HalconDotNet.HOperatorException: HALCON error #5: Operator failed (FAIL) in operator info_framegrabber

“DirectShow”表示普通USB摄像头。

HALCON数字图像处理(刘国华)

PerformanceCounter perf=new PerformanceCounter("Process","Working Set - Private",Process.GetCurrentProcess().ProcessName);
Timer timer;
timer.click+=T1_Tick;
 private void T1_Tick(object sender, EventArgs e)
  {
            var val = perf.NextValue() / 1024 / 1024;
            label2.Text=val.ToString("N2")+"MB";            
  }

你可能感兴趣的:(笔记,开发语言)