Giter Site home page Giter Site logo

afaq-ahmad / k-nearest-neighbors-classifier-for-letters-concept-ocr Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 4.15 MB

k-Nearest Neighbors Classifier has been used because of its simplicity, fastness and efficiency. The problem with Neural Network based models DNN or CNN required a lot of data, but in out cases we have limited amount of data just around 3 thousand images of characters

Python 100.00%

k-nearest-neighbors-classifier-for-letters-concept-ocr's Introduction

k-Nearest-Neighbors-Classifier-for-Letters-concept-Ocr

k-Nearest Neighbors Classifier has been used because of its simplicity, fastness and efficiency. The problem with Neural Network based models DNN or CNN required a lot of data, but in out cases we have limited amount of data just around 3 thousand images of characters

Advantages: Simple to understand, fast and efficient Disadvantages: Need to choose the number of neighbours k

*How can this system be improved? Increasing the quality and quantity of dataset. And character extraction techniques, the one techniques use in our project quit miss some words, that’s cause floating error as our others numbers are depends on it.

1

*Is the training appropriate and sufficient, does it overfit or underfit? The training is sufficient as in Knn training will be not depends on gradient descent or any optimization method so that’s why doesn’t required any epochs. It look like underfit as it is not predicting the right answer.

For Training:

> First Run "Training_images_to_character.py"
> Second Run "Knn_Training.py". This will train knn for 3 Neairest Neighbors and save model

For Testing:

> Run "Testing_on_Image.py", add the name of the image in the first line.
  This will run on images and then show the results.

In testing and training folder Images of characters automatically saved those are detected.

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.