Halcon 连接 pointgrey 双目相机

1、安装Firepackage驱动,该驱动是halcon的1394驱动,安装完毕后,单机安装程序后的installdriver.exe,为1394卡安装驱动

2、在halcon中加入如下代码,是通过修改相机的pan参数来获取左右图像的,理想的方法是通过raw16,format7 mod3的设置来获取,但暂时还没有找到实现方式,只能暂时这样。


open_framegrabber ('1394IIDC', 1, 1, 0, 0, 0, 0, 'progressive', 8, 'rgb', -1, 'false', 'default', '00B09D0100AD58AC', 0, -1, AcqHandle)
set_framegrabber_param (AcqHandle, 'bits_per_channel', 8)
set_framegrabber_param (AcqHandle, 'color_space', 'rgb')
set_framegrabber_param (AcqHandle, 'camera_type', '7:0:1')
set_framegrabber_param (AcqHandle, 'horizontal_resolution', 1024)
set_framegrabber_param (AcqHandle, 'horizontal_offset', 0)
set_framegrabber_param (AcqHandle, 'vertical_offset', 0)
set_framegrabber_param (AcqHandle, 'start_row', 0)

 


grab_image_start (AcqHandle, -1)
while (true)
    set_framegrabber_param (AcqHandle, 'pan', 1)
    grab_image_async (Image, AcqHandle, -1)
   
  
    set_framegrabber_param (AcqHandle, 'pan', 0)
    grab_image_async (Image1, AcqHandle, -1)
  
   
    * Do something
endwhile
close_framegrabber (AcqHandle)

 

你可能感兴趣的:(Halcon 连接 pointgrey 双目相机)