我是靠谱客的博主 呆萌小松鼠,这篇文章主要介绍Halcon+VisualStudio2015使用线程实现大恒水星相机实时图像采集,现在分享给大家,希望可以做个参考。

实时采集图像,可将采集的图像保存到本地文件夹

具体C#代码如下:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using HalconDotNet;
using System.IO;


namespace Demo
{
    public partial class 图像采集 : Form
    {
        private Thread  ThreadObject;  //线程
        private bool    ThreadStop = false;//判断线程是否关闭
        private HTuple  WindowID;
        public 图像采集()
        {
            InitializeComponent();
            //线程对象实例化
            ThreadObject = new Thread(new ThreadStart(ThreadFunction));
            CreateHalconWindow();//创建halcon显示窗口
        }

最后

以上就是呆萌小松鼠最近收集整理的关于Halcon+VisualStudio2015使用线程实现大恒水星相机实时图像采集的全部内容,更多相关Halcon+VisualStudio2015使用线程实现大恒水星相机实时图像采集内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(47)

评论列表共有 0 条评论

立即
投稿
返回
顶部