码迷,mamicode.com
首页 > 其他好文 > 详细

halcon相机拍照设置

时间:2020-04-05 11:18:29      阅读:338      评论:0      收藏:0      [点我收藏+]

标签:false   sync   设置   frame   需要   original   external   syn   sys   

HOperatorSet.SetFramegrabberParam(camera_acq_handle, "grab_timeout", -1);    超时设置  无穷

HOperatorSet.SetFramegrabberParam(camera_para_1.camera_acq_handle, "external_trigger", "true");
刚开始采集图像,需要设置外触发

HOperatorSet.SetFramegrabberParam(camera_para_1.camera_acq_handle, "external_trigger", "false");
软件关闭前设置,需要关闭外触发,相机才能正常退出来


相机初始化

 HOperatorSet.OpenFramegrabber("SaperaLT", 1, 1, 0, 0, 0, 0, "default", 8, "default", -1, "true",
                        "./SysFile/Camera1.ccf", "Xtium-CL_MX4_1", -1, -1, out camera_para_1.camera_acq_handle);
HOperatorSet.SetFramegrabberParam(camera_para_1.camera_acq_handle, "external_trigger", "true");

开始采集图像循环
            HOperatorSet.SetFramegrabberParam(camera_para_1.camera_acq_handle, "grab_timeout", -1);
            HOperatorSet.GrabImageStart(camera_para_1.camera_acq_handle, -1); 

                HOperatorSet.GrabImageAsync(out SmallOriginalImage, camera_para_1.camera_acq_handle, -1);

软件关闭 
HOperatorSet.SetFramegrabberParam(camera_acq_handle, "external_trigger", "false");
HOperatorSet.CloseFramegrabber(camera_para_1.camera_acq_handle);  

技术图片

halcon相机拍照设置

标签:false   sync   设置   frame   需要   original   external   syn   sys   

原文地址:https://www.cnblogs.com/QuincyYi/p/12636142.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!