身份证识别方案

 private void Form1_DragEnter(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent(DataFormats.FileDrop)) e.Effect = DragDropEffects.Link;
            else e.Effect = DragDropEffects.None;

        }

        private void Form1_DragDrop(object sender, DragEventArgs e)
        {
            string[] filePath = (string[])e.Data.GetData(DataFormats.FileDrop);
            foreach (string f in filePath)
            {
                File.Copy(f, Application.StartupPath + "\\rec_idc\\new\\60.jpg", true);
            }
            try
            {
                zx();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        本文来讲一下通过系统自身的CMD方案来进行身份证的信息识别及信息输出,在图片清晰度达到的时候,识别率高达99%。
        

         核心代码如下:

Process process = new Process();//实例
process.StartInfo.CreateNoWindow = true;//设定不显示窗口
process.StartInfo.UseShellExecute = false;
process.StartInfo.FileName = "c:\\Windows\\System32\\cmd.exe"; //设定程序名 
process.StartInfo.RedirectStandardInput = true; //重定向标准输入
process.StartInfo.RedirectStandardOutput = true; //重定向标准输出
process.StartInfo.RedirectStandardError = true;//重定向错误输出
process.Start();
process.StandardInput.WriteLine(@"cd rec_idc ");
process.StandardInput.WriteLine(@"test.exe ");

身份证识别方案展示视频

        下面是身份证识别源码,需要的朋友可以下载使用。

C#身份证图片信息识别源码_c#身份证识别-C#文档类资源-CSDN下载C#语言身份证图片信息识别源码工具WInForm语言开发根据提供的身份证图片识别身份证的姓名、c#身份证识别更多下载资源、学习资料请访问CSDN下载频道.https://download.csdn.net/download/qq_17416973/85142234

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

毒果

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值