1)找到采集卡: CogFrameGrabber1394DCAMs cameras = new CogFrameGrabber1394DCAMs();
2)列举相连接的相机: ICogFrameGrabber camera = cameras[0];
3)选择相机支持的格式:
const string VIDEO_FORMAT = "Basler A602fc 656x490 IEEE1394 (mono, 100fps, shutter-hw-triggermode0)
CCF"; ICogAcqFifo fifo = camera.CreateAcqFifo( VIDEO_FORMAT, CogAcqFifoPixelFormatConstants.Format8Grey, 0, true);
时间: 2024-10-18 07:06:48