基本信息
源码名称:halcon多张车牌识别
源码大小:4.09M
文件格式:.rar
开发语言:C#
更新时间:2020-02-29
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559

本次赞助数额为: 20 元 
   源码介绍

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using HalconDotNet;
namespace VLPR
{
    public partial class Form1 : Form
    {
        HDevelopExport HD = new HDevelopExport();
        
        string ImagePath;//图片路径
        
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.btn_RecognitionImage.Enabled = false;
            
        }
        //读取图片
        private void btn_ReadImage_Click(object sender, EventArgs e)
        {
            openFileDialog1.Filter = "JPG文件|*.jpg*|BMP文件|*.bmp*|TIFF文件|*.tiff*";//选择的文件格式
            openFileDialog1.RestoreDirectory = true;//是否重新回到关闭此对话框的目录
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                ImagePath = openFileDialog1.FileName;
                HD.Readimage(hWindowControl1.HalconWindow, hWindowControl1.Width, hWindowControl1.Height, ImagePath);
                this.btn_RecognitionImage.Enabled = true;
            }
        }
        //识别图片
        private void btn_RecognitionImage_Click(object sender, EventArgs e)
        {
            string chepaiid = HD.RecognitionImage();
            txtb_IDlist.Text = txtb_IDlist.Text   chepaiid   "\r\n";      
            this.btn_RecognitionImage.Enabled = false;
        }

        private void txtb_IDlist_TextChanged(object sender, EventArgs e)
        {

        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            lb_nowtime.Text=DateTime.Now.ToLocalTime().ToString();
        }
    }
}