实时采集图像,可将采集的图像保存到本地文件夹
具体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使用线程实现大恒水星相机实时图像采集内容请搜索靠谱客的其他文章。
发表评论 取消回复