概述
实时采集图像,可将采集的图像保存到本地文件夹
具体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使用线程实现大恒水星相机实时图像采集所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复