Giter Site home page Giter Site logo

malikakarsh / extract Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 2.98 MB

A very primitive form of original google tesseract which extracts texts (ONLY CAPITAL LETTERS) from an image and converts them to plain text

Python 26.46% Jupyter Notebook 73.54%
extracts-texts converts fonts text-classification text-analysis

extract's Introduction

EXTRACT

Introduction

EXTRACT is an optical character recognition engine for various operating systems which extracts texts from an image and converts them to plain text.

This model is a very primitive form of the original google tesseract which extracts texts (ONLY CAPITAL LETTERS) from an image and converts them to plain text.

Modules/Library REQUIREMENTS:

  1. os
  2. numpy
  3. PIL
  4. sys
  5. keras
  6. cropyble
  7. cv2
  8. shutil

How To Run the script:

NOTE1:- The trained model is not provided. So for the very first time run the script as it is. Once the model is trained: COMMENT OUT 'Train_Model' on line '65' and then run the script for further use.

NOTE2:- Only some fonts were taken into account so remember to use default font (calibri) in image texts with a FONT SIZE of '72' as there are assumptions to extract letters.

Run the script on your terminal: 'python3 tesseract.py': input image is:

output is (the predicted result is at the bottom):

The input image can be of any number of words example:

output is:

extract's People

Contributors

malikakarsh avatar mansibisen avatar

Stargazers

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