当前位置:   article > 正文

身份证识别方案_c#拍身份证识别

c#拍身份证识别
  1. private void Form1_DragEnter(object sender, DragEventArgs e)
  2. {
  3. if (e.Data.GetDataPresent(DataFormats.FileDrop)) e.Effect = DragDropEffects.Link;
  4. else e.Effect = DragDropEffects.None;
  5. }
  6. private void Form1_DragDrop(object sender, DragEventArgs e)
  7. {
  8. string[] filePath = (string[])e.Data.GetData(DataFormats.FileDrop);
  9. foreach (string f in filePath)
  10. {
  11. File.Copy(f, Application.StartupPath + "\\rec_idc\\new\\60.jpg", true);
  12. }
  13. try
  14. {
  15. zx();
  16. }
  17. catch (Exception ex)
  18. {
  19. MessageBox.Show(ex.Message);
  20. }
  21. }
  22. private void Form1_Load(object sender, EventArgs e)
  23. {
  24. }

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

         核心代码如下:

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

身份证识别方案展示视频

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/754303
推荐阅读
相关标签
  

闽ICP备14008679号