Giter VIP home page Giter VIP logo

imneonizer / recognize-text-from-images-with-python-and-opencv Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 4.0 328 KB

You can use this code to Train on Any Font Style of English Alphabets and Numbers, This code is so powerful when it comes to extract Text From Images. And the best part is you can train the model as per your preference.

Python 100.00%
ocr-recognition opencv-knn numpy text-recognition python-read-texts knn-character-recognition

recognize-text-from-images-with-python-and-opencv's Introduction

Recognize Text from Images with Python and Opencv

You can use this code to Train on Any Font Style of English Alphabets and Numbers, This code is so powerful when it comes to extracting Text From Images. And the best part is you can train the model as per your preference.

>> pip install opencv-python
>> pip install numpy

Step: 1

Run "GenData.py" to Train this K-NN Model How to Train? Simply When you will Run GenData.py A window will show up Any Alphabet / Number will be highlighted in Green color you need to press that key on your keyboard to tell the Model, which character it is.

Step: 2

After Completion of Training you can run "TrainAndTest.py" to test your first run. If you want it to recognize something else you can simply change the "test_image" variable on 8th line in TrainAndTest.py with the path of your desired image.

Illustrations

For Training, Run Train.py and press the keys (Note:- Keep Caps On), which shows up in the small window.

For Testing, Run Test.py the output will be something similar to below image.

overview

If you want to test out on different image you can change the input image online 8 of the file.

Three different images has been provided for testing purpose.

overview

Training And Testing Images

Training Image

Test Image 1

Test Image 2

Test Image 3

recognize-text-from-images-with-python-and-opencv's People

Contributors

imneonizer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.