Giter Club home page Giter Club logo

language-detection-in-image's Introduction

Text-Language-Detection-in-Image

Detects and Recognizes text and font language in an image

Description

Performed this analysis using The Tesseract OCR Engine.

The Project consist of following steps :

1.) The first step is a connected component analysis in which outlines of the components are stored into Blobs
2.) Blobs are organized into text lines and broken into words
3.) Recognize every word in a two-pass process
4.) A final phase resolves fuzzy spaces, and finalize text

Prerequisites

Software

  • libtesseract (>=3.04)
  • libleptonica (>=1.71)
  • Cython
  • Pillow
  • tesserocr
  • Python 2.7.0 |Anaconda 4.3.0 (64-bit)|

Tested on Ubuntu 16.04 LTS amd64 xenial image built on 2017-09-19 8-core CPU

Installation

sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install python-dev python-pip
sudo apt-get install tesseract-ocr-all libtesseract-dev libleptonica-dev
pip install Cython
pip install Pillow
pip install tesserocr

Running

  • Simply Clone the repository and run this command from root directory.
python ocr_itt.py -i <image_path.jpg>

Input 1

$ python ocr_itt.py -i e.jpg
e

Output

English
Confidence score is 78.6614583333

Input 2

$ python ocr_itt.py -i h.jpg
h

Output

Hindi
Confidence score is 84.2118644068

Input 3

$ python ocr_itt.py -i s.jpg
s

Output

Spanish
Confidence score is 69.7443609023

Author

Jai Janyani

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.