Code Monkey home page Code Monkey logo

cnn_identify_number's Introduction

依赖

  • python---->version=3.6
  • cv2---->version=4.4.0
  • tkinter---->version=系统自带
  • torch---->version=1.6.0
  • torchvision---->version=0.7.0

模型搭建简介

  • 搭建CNN模型
  • 使用mnist手写数字数据集进行训练

代码介绍

  • mnist:存放下载下来的数据集,为了减少程序上传大小,我已经将数据删除,需要获取请执行model_train.py

  • model:存放训练好的模型

  • photo:一些自己手写的测试照片

  • cnn_model.py:搭建的CNN模型,准确率高达99%

  • model_train.py:训练模型的代码

  • model_reference.py:调用模型,识别photo中的数字

  • tkGUI:搭建的可视化界面

  • main.py:程序启动入口


使用介绍

尽量将自己手写字截图为正方形,存放在没有汉字的目录下,运行main.py程序

效果如图:

在这里插入图片描述

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.