Git Product home page Git Product logo

handwrittendigitrecognition's Introduction

手写数字识别应用

  • 1 用Keras编写及导出预测手写数字的模型
  • 2 手写字符的分割(提供两个解决思路)
  • 3 特征工程(将自己的手写数字转换为MNIST数字集的模式)
  • 4 用我们编写的模型预测出结果并输出(如下所示的效果)

代码中主要实现了以下几个功能,输入一张照片可以分辨出数字,并识别输出到图示中,以下是效果 识别数字

================================== 我是分割线 =================================

model.py

基于keras编写了预测模型并训练,保存成my_mnist_model.h5模型

main.py

分别有以下几个模块

  • 1 findBorderHistogram ---- 寻找边框,返回边框的左上角和右下角(利用直方图寻找边缘算法(需行对齐))
  • 2 findBorderContours ---- 寻找边框,返回边框的左上角和右下角(利用cv2.findContours)
  • 3 transMNIST ---- 根据边框转换为MNIST格式
  • 4 predict ---- 导入模型输出预测结果
  • 5 showResults ---- 显示结果及边框

更加详细的介绍可以参考我的博客 https://blog.csdn.net/qq8993174/article/details/89081859

ps. 以下是my_mnist_model.h5生成所用的模块版本号,低于此版本的可能代码加载不起来

Tensorflow -- 1.12.0

Keras -- 2.2.4

opencv2 -- 3.4.4

handwrittendigitrecognition's People

Contributors

wangzg123 avatar

Stargazers

 avatar zha0xueyan avatar Li Yiming avatar Chhh314212 avatar  avatar  avatar 2311 avatar  avatar  avatar Mai Congyi 麦从一 avatar 奥利奥薄脆 avatar  avatar DX3906 avatar OrangeXia avatar  avatar  avatar Zcmmmm avatar Yukiria avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.