Code Monkey home page Code Monkey logo

languagedetection's Introduction

Language Detection from Receipts' images

This is a simple python script to detect in which language the recipe images were written in. The process consists of two steps: the first is to transform the image into a text file, for this purpose the “pytesseract” library was used. The second step is to identify in which language the text was written, for this step the python library “langdetect” was used.

Getting Started

To use this script clone this repository on your local machine and execute the following commands into the directory:

python ocr_document.py --f "[Insert here the image path]"

The above command will transform the image in a ".json" file containing the recognized text. Use the ".json" file generated in the previous step in the follow command:

python lang_detect.py --f "[Insert here the '.json' file path]"

The output will be a string with the language detected in the text, as in the example below:

Your text is write in 'en'.

languagedetection's People

Contributors

iagovargas avatar

Watchers

 avatar

Forkers

imran-ice

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.