Coder Social home page Coder Social logo

digitsocr's Introduction

digitsOCR

Handwrite digits recognition using KNN algorithms with training real time.

###Requirements:

  • OpenCV 3.0
  • Python 3

###How to use:

  1. Start the program using command line "python3 ocrlearnKnn.py".
  2. Write digits on a paper under the camera and check whether they are detected correctly.
  3. Training your own hand writing data: first, press "x" button to pause the screen and the digits of its processing will show simultaneously; second, press "e" button and input the value of the digits with whitespace separated; then, press enter and the training data will be updated; finally, after many times of training, the program will detect your hand writing digits effectively.

Demo

###Watch my DEMO video: http://www.bilibili.com/video/av4904541/

digitsocr's People

Contributors

leitro avatar littlethunder avatar yiminzme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

digitsocr's Issues

got error on while running on linux

VIDEOIO ERROR: V4L: index 1 is not correct!
Traceback (most recent call last):
File "ocrlearnKnn.py", line 68, in
frame = frame[:,:426]
TypeError: 'NoneType' object is not subscriptable

TypeError: 'NoneType' object is not subscriptable

TypeError: 'NoneType' object is not subscriptable

TypeError Traceback (most recent call last)
~/Desktop/.../ocrlearnKnn.py in ()
65 while True:
66 ret, frame = cap.read()
---> 67 frame = frame[:,:426]
68 rois, edges = findRoi(frame, 50)
69 digits = []
TypeError: 'NoneType' object is not subscriptable

run with jupyter notebook 5.50 in anaconda
python 3.6.5
cvใ€€3.4.1
Macbook Air

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.